@@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2121OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2222THE SOFTWARE.
2323 ..
24- .TH fzf 1 "Feb 2025" "fzf 0.60.1 " "fzf - a command-line fuzzy finder"
24+ .TH fzf 1 "Feb 2025" "fzf 0.60.2 " "fzf - a command-line fuzzy finder"
2525
2626.SH NAME
2727fzf - a command-line fuzzy finder
@@ -124,30 +124,32 @@ Transform the presentation of each line using the field index expressions.
124124For advanced transformation, you can provide a template containing field index
125125expressions in curly braces. When you use a template, the trailing delimiter is
126126stripped from each expression, giving you more control over the output.
127+ \fB {n} \fR in template evaluates to the zero-based ordinal index of the line.
127128
128129.RS
129130e.g.
130131 # Single expression: drop the first field
131132 echo foo bar baz | fzf --with-nth 2..
132133
133134 # Use template to rearrange fields
134- echo foo,bar,baz | fzf --delimiter , --with-nth '{1},{3},{2},{1..2}'
135+ echo foo,bar,baz | fzf --delimiter , --with-nth '{n},{ 1},{3},{2},{1..2}'
135136.RE
136137.TP
137138.BI " \-\- accept\- nth=" " N[,..] or TEMPLATE"
138139Define which fields to print on accept. The last delimiter is stripped from the
139140output. For advanced transformation, you can provide a template containing
140141field index expressions in curly braces. When you use a template, the trailing
141142delimiter is stripped from each expression, giving you more control over the
142- output.
143+ output. \fB {n} \fR in template evaluates to the zero-based ordinal index of the
144+ line.
143145
144146.RS
145147e.g.
146148 # Single expression
147149 echo foo bar baz | fzf --accept-nth 2
148150
149151 # Template
150- echo foo bar baz | fzf --accept-nth '1st: {1}, 2nd: {2}, 3rd: {3}'
152+ echo foo bar baz | fzf --accept-nth 'Index: {n}, 1st: {1}, 2nd: {2}, 3rd: {3}'
151153.RE
152154.TP
153155.B "+s, \-\- no\- sort"
0 commit comments