xwmx / nb

CLI and local web plain text note‑taking, bookmarking, and archiving with linking, tagging, filtering, search, Git versioning & syncing, Pandoc conversion, + more, in a single portable script.
https://xwmx.github.io/nb
GNU Affero General Public License v3.0
6.64k stars 188 forks source link

Notes in a subdirectory of the repository #222

Open abhinav opened 1 year ago

abhinav commented 1 year ago

It would be useful to make a subdirectory of the git repository into the notes directory instead of putting notes at the top level.

The primary motivating use case is to put notes for a project inside the same repository. For example:

% mkdir someproject && cd someproject
% git init
% nb notebooks init ./notes

Right now, someproject/notes gets initialized as its own repository, so it gets committed independently and not as part of someproject.


I suspect that in such a setup, users might not want automatic commits from nb, which might require some kind of opt-out. Please feel free to close this if you consider this direction outside the goals of this project.

mandarvaze commented 3 months ago

This seems to be coming up again and again. There is also a discussion #257 related to this.