Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
Oliver Davies 2025-09-09 01:13:19 +01:00
parent 453232cba0
commit 5e2f716c88

2
zet
View file

@ -168,7 +168,7 @@ run_git_command() {
} }
search_zets() { search_zets() {
grep --recursive --ignore-case --files-with-matches --exclude-dir=.git "$*" "$ZET_DIR" | while read -r file; do find "$ZET_DIR" -type f -name "index.adoc" -exec grep --files-with-matches --ignore-case "$*" {} + | while read -r file; do
id="$(get_zet_id_from_filepath "$file")" id="$(get_zet_id_from_filepath "$file")"
title=$(head -1 "$file" | sed 's/^= //' | sed 's/# //') title=$(head -1 "$file" | sed 's/^= //' | sed 's/# //')