Skip to content

Commit c0d407f

Browse files
committed
0.60.2
1 parent 461115a commit c0d407f

File tree

5 files changed

+13
-8
lines changed

5 files changed

+13
-8
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ CHANGELOG
33

44
0.60.2
55
------
6-
- Template for `--with-nth` and `--accept-nth` now supports `{n}` which evaluates to the zero-based ordinal index of the item.
6+
- Template for `--with-nth` and `--accept-nth` now supports `{n}` which evaluates to the zero-based ordinal index of the item
7+
- Fixed a regression that caused the last field in the "nth" expression to be trimmed when a regular expression delimiter is used
8+
- Thanks to @phanen for the fix
9+
- Fixed 'jump' action when the pointer is an empty string
710

811
0.60.1
912
------

install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -u
44

5-
version=0.60.1
5+
version=0.60.2
66
auto_completion=
77
key_bindings=
88
update_config=2

install.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$version="0.60.1"
1+
$version="0.60.2"
22

33
$fzf_base=Split-Path -Parent $MyInvocation.MyCommand.Definition
44

man/man1/fzf-tmux.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2121
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2222
THE SOFTWARE.
2323
..
24-
.TH fzf\-tmux 1 "Feb 2025" "fzf 0.60.1" "fzf\-tmux - open fzf in tmux split pane"
24+
.TH fzf\-tmux 1 "Feb 2025" "fzf 0.60.2" "fzf\-tmux - open fzf in tmux split pane"
2525

2626
.SH NAME
2727
fzf\-tmux - open fzf in tmux split pane

man/man1/fzf.1

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2121
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2222
THE 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
2727
fzf - a command-line fuzzy finder
@@ -124,30 +124,32 @@ Transform the presentation of each line using the field index expressions.
124124
For advanced transformation, you can provide a template containing field index
125125
expressions in curly braces. When you use a template, the trailing delimiter is
126126
stripped 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
129130
e.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"
138139
Define which fields to print on accept. The last delimiter is stripped from the
139140
output. For advanced transformation, you can provide a template containing
140141
field index expressions in curly braces. When you use a template, the trailing
141142
delimiter 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
145147
e.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

Comments
 (0)