From 1f8d8b6a55277b3a6a594463f5e61647611fb073 Mon Sep 17 00:00:00 2001 From: Konstantin Nazarov Date: Wed, 27 Nov 2024 20:09:02 +0000 Subject: [PATCH] Limit listing of notes by only note.md files --- notes.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notes.sh b/notes.sh index 4c13859..a13403d 100755 --- a/notes.sh +++ b/notes.sh @@ -115,7 +115,7 @@ list_entries() { }\ " - grep -r -m 3 -h "^Subject:\|^X-Note-Id:\|^X-Date:" "$BASEDIR" | awk "$FILTER" | sort | cut -d " " -f "2-" + grep -r -m 3 -h "^Subject:\|^X-Note-Id:\|^X-Date:" "$BASEDIR" --include="note.md" | awk "$FILTER" | sort | cut -d " " -f "2-" }