Open ghost opened 4 years ago
Very good idea.
It needs some extra work to be done involving migration from current version (the repos will be placed where the categories are currently located).
Thanks for reporting, adding this to my todo list.
I think you don't even have to config the repos globally (this would make it more difficult to share the notes with others). Just a stup new-repo
(or the existing stup configure
), the configuration dialog (default location is pwd/stup
), and you're done.
What needs a little thought is:
-l
or --local
for the project's repo could solve it)stup/
until it's found or /
or $HOME
is reached (where it's a nonsense for a project repo as there should be the "global" repo))Also, maybe the default config file would have to be moved to Only the ~/.stup
.default-category
would have to be moved into the repo directory.
Oh, now I understood how you meant it. I thought of having the repo in the project directory, not in the global notes root. What you mean is already possible (maybe with some drawbacks)—I have some category/subcategory
in my notes right now.
It would be great to manage some notes (e.g. for a project) in a separate root directory to prevent them from mixing into the other notes (and the other way around).
(Sorry for calling the directories repos, but I couldn't find a better name)