summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-01-17 13:21:00 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-01-17 13:21:00 +0900
commit59fb65293a306dd685c1098d73eb62e5b0892eb8 (patch)
treeb57d129daa31816cff4974bdc933a3fab00b4256
parente7718b92b7a79903bd945244560f1c8015f64ced (diff)
README.md: More information on image support
-rw-r--r--README.md18
1 files changed, 8 insertions, 10 deletions
diff --git a/README.md b/README.md
index 55a3dba9..af4ede6d 100644
--- a/README.md
+++ b/README.md
@@ -734,18 +734,16 @@ history | fzf
### Previewing an image
-Since 0.43.0, fzf has experimental support for [Kitty graphics
-protocol](https://sw.kovidgoyal.net/kitty/graphics-protocol/), so if you use
-Kitty, you can make fzf display an image in the preview window.
+fzf can display images in the preview window using one of the following protocols:
+
+* [Kitty graphics protocol](https://sw.kovidgoyal.net/kitty/graphics-protocol/)
+* [iTerm2 inline images protocol](https://iterm2.com/documentation-images.html)
+* [Sixel](https://en.wikipedia.org/wiki/Sixel)
+
+See [bin/fzf-preview.sh](bin/fzf-preview.sh) script for more information.
```sh
-fzf --preview='
- if file --mime-type {} | grep -qF image/; then
- kitty icat --clear --transfer-mode=memory --unicode-placeholder --stdin=no --place=${FZF_PREVIEW_COLUMNS}x${FZF_PREVIEW_LINES}@0x0 {} | sed \$d
- else
- bat --color=always {}
- fi
-'
+fzf --preview 'fzf-preview.sh {}'
```
Tips