4 ms·
Can you share your script.
by rshm 6y ago
Can you share your script.
- maxioatic 6y agoI'd love some more info as well!
- simias 6y agoThis is the main one (that actually only uses FZF, not ripgrep): https://gist.github.com/simias/b1d8356469d2a9386deeb7c45984b961 https://gist.github.com/simias/b1d8356469d2a9386deeb7c45984b... You'll need to set NOTES_DIR in your environment to wherever you want your notes to be stored. Then you can write `note something` to create or open $NOTES_DIR/something.md with your $EDITOR. If you type "note" without parameter you'll start a search on all the note names, ordered by last use. If you type "note -f" it starts a full text search. For best results you should have the fzf.vim's preview.sh somewhere in your fs, otherwise it'll use "cat" but it won't be as good looking (see FZF_PREVIEW in the script). Hopefully despite being shell it should be readable enough to tweak to your liking. Note that it was written and used exclusively on Linux, but I did try to avoid GNU-isms so hopefully it should work on BSDs and maybe even on MacOS with a bit of luck.