From b6484958979b0bb6398dc95b72f233bea20fe1b4 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 15 Aug 2024 12:19:29 +0200 Subject: checkpoint --- bin/extra/notes | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 bin/extra/notes (limited to 'bin/extra/notes') 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" -- cgit v1.2.3