Only match full words
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
parent
0ddcf20a59
commit
cc6582933b
1 changed files with 1 additions and 1 deletions
2
zet
2
zet
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue