iridakos / stup

Daily notes in the terminal :penguin:
https://github.com/iridakos/stup
MIT License
415 stars 31 forks source link

Multiple repos #15

Open ghost opened 4 years ago

ghost commented 4 years ago

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)

iridakos commented 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.

ghost commented 4 years ago

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:

Also, maybe the default config file would have to be moved to ~/.stup. Only the 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.