As of September 2024 I use nb as my primary note-taking and knowledge management program.
Install
On a Mac, it can be installed from Homebrew: brew install nb.
Set nb directory
I sync my nb documents via Syncthing, and therefore need the tool to use my Syncthing directory as its “home”: nb set nb_dir ~/Syncthing/nb.
Migration from Obsidian
To migrate my notes from Obsidian, I created the top-level directories (which nb calls “notebooks”) in ~/Syncthing/nb and copied the .md files from Obsidian into the appropriate directories.
I tidied some recent notes and added tags to the ones I’m currently working on (or for ongoing projects) to enable quicker discovery later on.
Set default editor
nb respects the $EDITOR environment variable, which I already had set. However it can also be set specifically for nb with nb set editor vim.
Simple usage
nbto list all notes in the current notebooknb ato create a new note (short for “add”)nb e 23to edit note with ID 23nb use workto switch to the “work” notebooknb tto list all tasksnb t oto list all open (“undone”) tasksnb home:ato add a note to the “home” notebook from anywherenb work:t oto list all open tasks in the “work” notebook from anywherenb t a "My todo"to add a new task as its own document
For more, check out the docs.