mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-25 11:25:37 +00:00
11 lines
266 B
Fish
11 lines
266 B
Fish
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
|