summaryrefslogtreecommitdiffstats
path: root/man/man1/fzf.1
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2023-10-09 01:29:03 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2023-10-09 01:29:03 +0900
commit2952737755aeda4c088a84693569f7b881162160 (patch)
tree93ea56195698123d2b284060e45406cc9a7186dc /man/man1/fzf.1
parentf103aa4753b435f8f45c5130323effeb75583c15 (diff)
Update README: Experimental support for Kitty graphics protocol
Diffstat (limited to 'man/man1/fzf.1')
-rw-r--r--man/man1/fzf.112
1 files changed, 12 insertions, 0 deletions
diff --git a/man/man1/fzf.1 b/man/man1/fzf.1
index 4388c97b..28a772ea 100644
--- a/man/man1/fzf.1
+++ b/man/man1/fzf.1
@@ -591,6 +591,18 @@ e.g.
echo "$i"
sleep 0.01
done'\fR
+
+Since 0.43.0, fzf has experimental support for Kitty graphics protocol,
+so if you use Kitty, you can make fzf display an image in the preview window.
+
+e.g.
+ \fBfzf --preview='
+ if file --mime-type {} | grep -qF "image/"; then
+ kitty icat --clear --transfer-mode=memory --stdin=no --place=${FZF_PREVIEW_COLUMNS}x${FZF_PREVIEW_LINES}@0x0 {}
+ else
+ bat --color=always {}
+ fi
+ '\fR
.RE
.TP