lf: fix find_word preview
This commit is contained in:
parent
7df2de8159
commit
b39f15cfbd
|
@ -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)"
|
||||
|
|
Loading…
Reference in New Issue