A minimalist Bash script to manage your fleeting, literature, and permanent notes—Zettelkasten style. Includes searching, Markdown previews, git sync, and more.
- Quickly create Fleeting, Literature, or Permanent notes
- Preview and search notes using
fzf
andglow
(or your preferred tools) - Edit notes directly from terminal
- Simple Git-based syncing
- Lightweight and dependency-minimal
- Configurable with your preferred editor/viewer
git clone https://github.com/joaocgduarte/nn.git
cd nn
chmod +x nn
# Move to /usr/local/bin
sudo mv nn /usr/local/bin/nn
# OR use an alias
alias nn="/full/path/to/nn"
The script creates a .nnconfig file in your home, which will be used for choosing your CLI tools like glow for markdown viewing and nvim for editing
# Default configuration for nn
NOTE_DIR="$HOME/home/notes"
EDITOR="nvim"
VIEW_NOTE_PROGRAM="glow"
FZF_PREVIEW="glow -p -w 109 -s dark {}"
You can edit these preferences at any time.
- fzf
- glow (or your own viewer like bat, less, etc.)
- ripgrep (rg)
- git
Install with Homebrew on macOS/Linux:
brew install fzf glow ripgrep
Or use your system package manager.
sudo apt-get install fzf glow ripgrep
nn # Create a fleeting note
nn -f # Create fleeting note
nn -l # Create literature note
nn -p # Create permanent note
nn -o # Open the notes directory
nn -e -p # Edit a permanent note
nn -gn -g term # Preview a note containing a term
nn -d -n "idea" # Delete a note by name
nn -s # Sync notes (git add/commit/push)
If you find this useful, you can buy me a coffee
MIT — Feel free to use, modify, and share.