Note taking script
6. 5. 2026needs: fzf, ripgrep (rg)
note --help
Usage:
note n "title" โ new note with explicit title
note "text" โ create/reopen note
note l โ list
note o โ open (fzf)
note s โ search (rg|fzf)
note c โ cat latest
note rm โ move to .trash
note pull โ git pull
note push โ git push
note --longhelp | less โ full help
note h โ this help
Storage: /home/b/notes
Multiple parameters to run same command, for example
note
# and
note open
are the same (neat little dual pane tui is presented), and if you add a parameter (file name approximation)
note open gemma
it will open first filename that has some gemma in there. Search is similar.
note s
will open neat little tui as well, piping ripgrep output to fzf and behaving like file selector.
note c
should cat last changed note.
note list
should list files/notes to stdout, not sure if this is needed (open does similar job).
Text editor, by default $EDITOR variable is used, if undefined it will try to load hx (helix) or vim or nano. Configure to your needs. By default notes will be stored in $HOME/notes, configure as needed.
Not needing the specific title is the idea as well, so
note nice weather today
shall make a note with filename โ2026-04-27-nice-weather-today.mdโ.
about fzf scrolling
Up and down will select files, shift+up and shift+down will scroll the text pane on the right (mice should also work).
Scrot (โopen noteโ fzf tui):

Note syncing
of $HOME/notes is up to the user. I use git.
noteurls (โpluginโ)
Separated script with similar tui that will extract urls from notes and open one or two in browser (tab toggles selected).
llm-md-fix
Fix markdown using local gemma4 model. Will write โfixedโ version to stdout.
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ llm-md-fix โ clean Markdown using a local LLM โ
โ โ
โ USAGE: โ
โ llm-md-fix file.md # rewrite file content โ
โ cat file.md | llm-md-fix # pipe input โ
โ llm-md-fix # reads stdin โ
โ โ
โ OPTIONS: โ
โ -h, --help Show this help โ
โ โ
โ DESCRIPTION: โ
โ Converts messy text into clean Markdown using a local Ollama model. โ
โ โ
โ Rules applied: โ
โ - preserves content โ
โ - fixes Markdown structure โ
โ - converts raw URLs to Markdown links (when possible) โ
โ - preserves YAML frontmatter โ
โ - outputs ONLY Markdown โ
โ โ
โ ENV: โ
โ MODEL Ollama model name (default: gemma4) โ
โ โ
โ EXAMPLES: โ
โ llm-md-fix notes.md โ
โ cat notes.md | llm-md-fix โ
โ echo "https://example.com" | llm-md-fix โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
noteweb
Display notes in localy generated html page (needs rewrite).
