Repository navigation
feat: dossiers start as named drafts and get a folder when saved - #53
Open
francescobianco wants to merge 3 commits into
Open
francescobianco wants to merge 3 commits into
francescobianco wants to merge 3 commits into
Conversation
New Dossier asks only for a name; the draft lives in the user data dir and is moved to ~/Documents/Dossiers/<name> (or a chosen folder) on Save or when the window closes. Saved dossiers show a <name>.dossier launcher (registered MIME type, opens the app), sources/, knowledge/ and notes/; derived state moves to a hidden .dossier/. Legacy projects open unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First step of the dossier work for the next release (spec in #51).
What changes for the user
$XDG_DATA_HOME/gknowledge/drafts/.~/Documents/Dossiers/<name>(localised Documents dir viauser-dirs.dirs), or another folder from the file chooser. Existing folders are never overwritten (<name> (2)).<name>.dossier,sources/,knowledge/,notes/; database, cache and settings live in a hidden.dossier/with a generated.gitignore.<name>.dossieris registered asapplication/x-dossier(shared-mime-info + desktop file): double-click opens the dossier. Open Dossier… now picks a.dossierfile (or a legacygknowledge.json).--filesystem=xdg-documents/Dossiers:createso the default home works in the sandbox.Compatibility
Projects created with 0.3 (
gknowledge.json,index/,settings/at the root) open unchanged; no migration is run. The class is stillProject; the code rename and the plain-file ledger come in follow-up PRs.Tests
tests/test_dossier.py: drafts, saving, no-overwrite, localised Documents dir, launcher open/rename, legacy layout untouched. 44 passed with pytest;make testandmake checkpass.🤖 Generated with Claude Code