Skip to content
Myr

Updates man page documentation (#4607)

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

* docs(man): Add example for {+f} in preview command * docs(man): replace echo -e with printf to improve portability across different shells

authored by LangLangBart · committed by GitHub · parent cfc37ca · Browse files · 1 file+5 added−2 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+5 added−2 removed

  • other:+5 added−2 removed

1 file+5 added−2 removed

modified:man/man1/fzf.1+5 added-2 removed
739 unmodified lines
740ENVIRONMENT VARIABLES EXPORTED TO CHILD PROCESSES.741742e.g.743 \fB# Prepend the current cursor position in yellow744 fzf \-\-info\-command='echo \-e "\\x1b[33;1m$FZF_POS\\x1b[m/$FZF_INFO 💛"'\fR744 fzf \-\-info\-command='printf "\\x1b[33;1m$FZF_POS\\x1b[m/$FZF_INFO 💛"'\fR745746.TP747.B "\-\-no\-info"748A synonym for \fB\-\-info=hidden\fB
91 unmodified lines
840 \fB# See the sum of all the matched numbers841 # This won't work properly without 'f' flag due to ARG_MAX limit.842 seq 100000 | fzf \-\-preview "awk '{sum+=\\$1} END {print sum}' {*f}"\fR843844 \fB# Use {+f} to get the selected items as a line-separated list845 seq 100 | fzf \-\-multi \-\-bind 'enter:become:cat {+f}'\fR846847Also,848849* \fB{q}\fR is replaced to the current query string850.br
1257 unmodified lines
2108payload of HTTP POST request to the \fB\-\-listen\fR server.21092110e.g.2111 \fB# Disallow selecting an empty line2109 echo \-e "1. Hello\\n2. Goodbye\\n\\n3. Exit" |2112 printf "1. Hello\\n2. Goodbye\\n\\n3. Exit" |2113 fzf \-\-height '~100%' \-\-reverse \-\-header 'Select one' \\2114 \-\-bind 'enter:transform:[[ \-n {} ]] &&2115 echo accept ||2116 echo "change\-header:Invalid selection"'
73 unmodified lines