Only match full words

Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
Oliver Davies 2025-09-20 22:16:05 +01:00
parent 0ddcf20a59
commit cc6582933b

2
zet
View file

@ -204,7 +204,7 @@ search_zettel() {
QUERY="$*" QUERY="$*"
git grep -i --name-only -E "$QUERY" | grep -o -E '[0-9]+' | sort -un git grep -i --name-only -P "\b$QUERY\b" | grep -o -E '[0-9]+' | sort -un
} }
select_zet() { select_zet() {