Skip to content
Myr

README.md: More information on image support

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent e7718b9 · Browse files · 1 file+8 added−10 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−10 removed

  • other:+8 added−10 removed

1 file+8 added−10 removed

modified:README.md+8 added-10 removed
732 unmodified lines
733```734735### Previewing an image736737Since 0.43.0, fzf has experimental support for [Kitty graphics738protocol](https://sw.kovidgoyal.net/kitty/graphics-protocol/), so if you use739Kitty, you can make fzf display an image in the preview window.737fzf can display images in the preview window using one of the following protocols:738739* [Kitty graphics protocol](https://sw.kovidgoyal.net/kitty/graphics-protocol/)740* [iTerm2 inline images protocol](https://iterm2.com/documentation-images.html)741* [Sixel](https://en.wikipedia.org/wiki/Sixel)742743See [bin/fzf-preview.sh](bin/fzf-preview.sh) script for more information.744745```sh742fzf --preview='743 if file --mime-type {} | grep -qF image/; then744 kitty icat --clear --transfer-mode=memory --unicode-placeholder --stdin=no --place=${FZF_PREVIEW_COLUMNS}x${FZF_PREVIEW_LINES}@0x0 {} | sed \$d745 else746 bat --color=always {}747 fi748'746fzf --preview 'fzf-preview.sh {}'747```748749Tips750----
61 unmodified lines