dotfiles/fish.configlink/functions/note.fish

11 lines
266 B
Fish
Raw Permalink Normal View History

function note --description "Edit or create a note" -a "filename"
if test -n "$filename"
vim $NOTES_PATH/$filename.md
else
set file (ls $NOTES_PATH | fzf)
if [ $status -eq 0 ]
vim $NOTES_PATH/$file
end
end
end