2
0
Fork 0
forked from pub-solar/os

notes: fix overlooked usage of ack

This commit is contained in:
teutat3s 2025-03-26 19:36:42 +01:00
parent a164d2e0b5
commit 7de8e4d572
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -9,7 +9,7 @@ self: with self; ''
cd $NOTESDIR || exit
file="$(
FZF_DEFAULT_COMMAND="$ACK_PREFIX '$1'" \
${fzf}/bin/fzf --sort --preview="[[ ! -z {} ]] && ack --colour --context 5 {q} {}" \
${fzf}/bin/fzf --sort --preview="[[ ! -z {} ]] && ${ripgrep}/bin/rg --context 5 {q} {}" \
--phony -q "$1" \
--bind "change:reload:$ACK_PREFIX {q}" \
--preview-window="70%:wrap"