I wrote a small script that takes a query as its single argument and if it finds a matching filename in a given directory it shows that in a pager. If it doesn’t, it uses ripgrep to search inside that directory and returns the filenames in a picker. If I prepend the filename with e, it opens that file (either existing or new) in an editor. Then I track that directory with Git.
This way I have a quick way to store, find and retrieve notes from the terminal itself.
I wrote a small script that takes a query as its single argument and if it finds a matching filename in a given directory it shows that in a pager. If it doesn’t, it uses ripgrep to search inside that directory and returns the filenames in a picker. If I prepend the filename with
e
, it opens that file (either existing or new) in an editor. Then I track that directory with Git.This way I have a quick way to store, find and retrieve notes from the terminal itself.