#!/usr/bin/env bash | |
set -e | |
main() { | |
previous_file="$1" | |
file_to_edit=`select_file $previous_file` | |
if [ -n "$file_to_edit" ] ; then | |
"$EDITOR" "$file_to_edit" | |
main "$file_to_edit" | |
fi | |
} | |
select_file() { | |
given_file="$1" | |
fzf --preview="cat {}" --preview-window=right:70%:wrap --query="$given_file" | |
} | |
main "" |
I added in-script file creation.
@alichtman awesome! :)
Also awesome is that apparently GitHub now includes Gist comments in its Notification page, which I think is new.
https://github.com/alichtman/fzf-notes
I've fleshed this out into a more complete note taking tool and thought I'd share. It now supports multiple notebooks.
Hey @alichtman that's really cool! I'll have to pull down your tool and try it out later today :)
Thanks to this amazing idea, I created this small script to manage notes in the Zettelkasten method, using fzf, the silver searcher and bat.
Thanks to this amazing idea, I created this small script to manage notes in the Zettelkasten method, using fzf, the silver searcher and bat.
the link to your project is dead
the link to your project is dead
Fixed it @SamDc73, thanks for the heads up!
I added in-script file creation.