summaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2023-10-23 01:01:47 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2023-10-23 01:05:30 +0900
commitb1a0ab8086f061640948299b9ed90a6b0c61c143 (patch)
tree2940e66c6686c9486faf5fa8907b69d32e325b9a /man
parenta33749eb717aeda07173051435cce605060c81ee (diff)
Experimental Sixel support (#2544)
Diffstat (limited to 'man')
-rw-r--r--man/man1/fzf.120
1 files changed, 19 insertions, 1 deletions
diff --git a/man/man1/fzf.1 b/man/man1/fzf.1
index 27d687b8..735fa7f6 100644
--- a/man/man1/fzf.1
+++ b/man/man1/fzf.1
@@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
..
-.TH fzf 1 "Oct 2023" "fzf 0.43.0" "fzf - a command-line fuzzy finder"
+.TH fzf 1 "Oct 2023" "fzf 0.43.1" "fzf - a command-line fuzzy finder"
.SH NAME
fzf - a command-line fuzzy finder
@@ -603,6 +603,24 @@ e.g.
bat --color=always {}
fi
'\fR
+
+fzf also has experimental support for Sixel graphics.
+
+e.g.
+ \fB# 1. $FZF_PREVIEW_WIDTH and $FZF_PREVIEW_HEIGHT will be set to
+ # the pixel width and height of the preview window
+ # 2. Special preview window flag 'clear' is needed to always completely
+ # erase the preview window
+ fzf --preview='
+ if file --mime-type {} | grep -qvF image/; then
+ bat --color=always {}
+ elif [[ -n $FZF_PREVIEW_WIDTH ]]; then
+ convert {} -resize ${FZF_PREVIEW_WIDTH}x${FZF_PREVIEW_HEIGHT} sixel:-
+ else
+ echo "Cannot display image data (unsupported platform)"
+ fi
+ ' --preview-window clear\fR
+
.RE
.TP