1
0
Fork 0

lf: fix find_word preview

This commit is contained in:
Luca Bilke 2024-10-24 12:00:39 +02:00
parent 7df2de8159
commit b39f15cfbd
Signed by: luca
GPG Key ID: F6E11C9BAA7C82F5
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ cmd find_word ${{
--bind="start:reload([ -n {q} ] && $rg_cmd -- {q} || true)" \
--bind="change:reload([ -n {q} ] && $rg_cmd -- {q} || true)" \
--preview-window="right,50%,+{2}/2" \
--preview="$BAT"' --highlight-line {2} {1} "$FZF_PREVIEW_COLUMNS" "$FZF_PREVIEW_LINES" "$FZF_PREVIEW_LEFT" "$FZF_PREVIEW_TOP"'
--preview="$BAT"' --highlight-line {2} {1}'
)"
file="$(realpath "$(echo "$res" | cut -d':' -f1 | sed 's/\\/\\\\/g;s/"/\\"/g')" 2>/dev/null)"