1
0
Fork 0

lf: fix preview in fzf

This commit is contained in:
Luca Bilke 2024-10-21 09:00:57 +02:00
parent 408307cf30
commit a15f13f148
Signed by: luca
GPG Key ID: F6E11C9BAA7C82F5
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ res="$(
--bind="start:reload([ -n {q} ] && $rg_cmd -- {q} || true)" \
--bind="change:reload([ -n {q} ] && $rg_cmd -- {q} || true)" \
--preview-window="right,50%" \
--preview='~/.config/lf/preview/clean; ~/.config/lf/preview/preview {1} "$FZF_PREVIEW_COLUMNS" "$FZF_PREVIEW_LINES" "$FZF_PREVIEW_LEFT" "$FZF_PREVIEW_TOP"'
--preview='~/.config/lf/preview {1} "$FZF_PREVIEW_COLUMNS" "$FZF_PREVIEW_LINES" "$FZF_PREVIEW_LEFT" "$FZF_PREVIEW_TOP"'
)"
file="$(realpath "$(echo "$res" | cut -d':' -f1 | sed 's/\\/\\\\/g;s/"/\\"/g')" 2>/dev/null)"
row="$(echo "$res" | cut -d':' -f2)"