From fcc4178bcaf7ceb7b0083b2088048a084a251e4d Mon Sep 17 00:00:00 2001 From: LangLangBart <92653266+LangLangBart@users.noreply.github.com> Date: Tue, 2 Dec 2025 10:29:46 +0100 Subject: [PATCH] Updates man page documentation (#4607) * docs(man): Add example for {+f} in preview command * docs(man): replace echo -e with printf to improve portability across different shells --- man/man1/fzf.1 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/man/man1/fzf.1 b/man/man1/fzf.1 index d0214942..7d763729 100644 --- a/man/man1/fzf.1 +++ b/man/man1/fzf.1 @@ -741,7 +741,7 @@ ENVIRONMENT VARIABLES EXPORTED TO CHILD PROCESSES. e.g. \fB# Prepend the current cursor position in yellow - fzf \-\-info\-command='echo \-e "\\x1b[33;1m$FZF_POS\\x1b[m/$FZF_INFO 💛"'\fR + fzf \-\-info\-command='printf "\\x1b[33;1m$FZF_POS\\x1b[m/$FZF_INFO 💛"'\fR .TP .B "\-\-no\-info" @@ -841,6 +841,9 @@ e.g. # This won't work properly without 'f' flag due to ARG_MAX limit. seq 100000 | fzf \-\-preview "awk '{sum+=\\$1} END {print sum}' {*f}"\fR + \fB# Use {+f} to get the selected items as a line-separated list + seq 100 | fzf \-\-multi \-\-bind 'enter:become:cat {+f}'\fR + Also, * \fB{q}\fR is replaced to the current query string @@ -2106,7 +2109,7 @@ payload of HTTP POST request to the \fB\-\-listen\fR server. e.g. \fB# Disallow selecting an empty line - echo \-e "1. Hello\\n2. Goodbye\\n\\n3. Exit" | + printf "1. Hello\\n2. Goodbye\\n\\n3. Exit" | fzf \-\-height '~100%' \-\-reverse \-\-header 'Select one' \\ \-\-bind 'enter:transform:[[ \-n {} ]] && echo accept ||