m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 15:53:39 -05:00

Explain the difference of template from a single field index expression

Close #4272
This commit is contained in:
Junegunn Choi
2025-02-22 22:14:49 +09:00
parent d79902ae59
commit 1ca5f09d7b

View File

@@ -122,7 +122,8 @@ fields.
.BI "\-\-with\-nth=" "N[,..] or TEMPLATE" .BI "\-\-with\-nth=" "N[,..] or TEMPLATE"
Transform the presentation of each line using the field index expressions. Transform the presentation of each line using the field index expressions.
For advanced transformation, you can provide a template containing field index For advanced transformation, you can provide a template containing field index
expressions in curly braces. expressions in curly braces. When you use a template, the trailing delimiter is
stripped from each expression, giving you more control over the output.
.RS .RS
e.g. e.g.
@@ -136,7 +137,9 @@ e.g.
.BI "\-\-accept\-nth=" "N[,..] or TEMPLATE" .BI "\-\-accept\-nth=" "N[,..] or TEMPLATE"
Define which fields to print on accept. The last delimiter is stripped from the Define which fields to print on accept. The last delimiter is stripped from the
output. For advanced transformation, you can provide a template containing output. For advanced transformation, you can provide a template containing
field index expressions in curly braces. field index expressions in curly braces. When you use a template, the trailing
delimiter is stripped from each expression, giving you more control over the
output.
.RS .RS
e.g. e.g.