dotfiles/.local/bin/spnotes

16 lines
604 B
Plaintext
Raw Normal View History

2024-06-29 08:48:30 +02:00
#!/usr/bin/env sh
# Command for notes scratchpad used in dwm
2024-07-05 04:01:24 +02:00
selection=$(fd --color=always \
--base-directory ~/notes \
-e md -e txt -e qalc \
| fzf \
--ansi \
--prompt=" Notes  " \
--margin="10%,3%" \
2024-07-05 04:01:24 +02:00
--no-info --height=100% --scrollbar="" \
--preview="fuz-preview ~/notes/{}" \
--preview-window="70%,border-left")
2024-07-05 04:01:24 +02:00
[ -n "$selection" ] && nvim ~/notes/"$selection"