diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-08-15 13:25:05 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-08-15 13:25:05 +0200 |
commit | b3a25c858a5cf55c954e9d78acd75a135992778d (patch) | |
tree | 5110f03eb46a2728c89e8d537ec358165cc70f66 /bin/extra/notes | |
parent | 4185a9b7ef76d686af011c8f66c14150add04426 (diff) | |
parent | b6484958979b0bb6398dc95b72f233bea20fe1b4 (diff) |
Merge branch 'main' of debuc.com:dotfiles
Diffstat (limited to 'bin/extra/notes')
-rwxr-xr-x | bin/extra/notes | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/extra/notes b/bin/extra/notes new file mode 100755 index 0000000..e3b4a4d --- /dev/null +++ b/bin/extra/notes @@ -0,0 +1,8 @@ +#!/bin/sh + +notes="$HOME/notes" +note="$(find "$notes" -type f -name '*.md' | + sed "s@$notes/@@;s@\.md\$@@" | + fzf)" +[ "$note" ] || exit 1 +$EDITOR "$notes/$note.md" |