Junegunn Choi
3ba82b6d87
Make truncateQuery faster
...
https://github.com/junegunn/fzf/issues/4292#issuecomment-2687051731
2025-02-27 15:49:15 +09:00
Junegunn Choi
710ebdf9c1
Make --accept-nth compatible with --select-1
...
Fix #4287
2025-02-26 00:25:23 +09:00
alex-huff
cd1da27ff2
Fix condition for using item numlines cache ( #4285 )
2025-02-25 20:25:26 +09:00
Junegunn Choi
461115afde
Add support for {n} in --with-nth and --accept-nth templates
...
Close #4275
2025-02-23 19:47:56 +09:00
Junegunn Choi
d79902ae59
Fix 'jump' when pointer is empty
...
Fix #4270
2025-02-22 19:05:30 +09:00
Junegunn Choi
0ba066123e
Fix case where preview window is not scrollable ( #4258 )
...
When the last rendered line was wrapped, fzf would incorrectly determine
the scrollability of the window.
2025-02-20 08:22:43 +09:00
Junegunn Choi
f975b40236
Fix {q} in preview window affected by 'search' action
2025-02-18 10:08:47 +09:00
Junegunn Choi
ac32fbb3b2
Avoid printing items in an extremely narrow screen
2025-02-13 22:12:25 +09:00
Junegunn Choi
7d26eca5cc
Truncate wrap sign in the list section if necessary
2025-02-13 21:50:53 +09:00
Junegunn Choi
84e2262ad6
Make --accept-nth and --with-nth support templates
2025-02-12 20:15:04 +09:00
Junegunn Choi
19ef8891e3
Print --wrap-sign in preview window
...
Close #4233
2025-02-11 00:01:50 +09:00
Junegunn Choi
a2420026ab
Rename actions: exclude and exclude-multi
...
https://github.com/junegunn/fzf/pull/4231#issuecomment-2646067669
2025-02-09 13:52:20 +09:00
Junegunn Choi
1be1991299
Add exclude-current action
...
https://github.com/junegunn/fzf/pull/4231#issuecomment-2646063208
2025-02-09 13:37:22 +09:00
Junegunn Choi
67dd7e1923
Add 'exclude' action for excluding current/selected items from the result ( #4231 )
...
Close #4185
2025-02-09 13:22:33 +09:00
Junegunn Choi
2b584586ed
Add --accept-nth option to transform the output
...
This option can be used to replace a sed or awk in the post-processing step.
ps -ef | fzf --multi --header-lines 1 | awk '{print $2}'
ps -ef | fzf --multi --header-lines 1 --accept-nth 2
This may not be a very "Unix-y" thing to do, so I've always felt that fzf
shouldn't have such an option, but I've finally changed my mind because:
* fzf can be configured with a custom delimiter that is a fixed string
or a regular expression.
* In such cases, you'd need to repeat the delimiter again in the
post-processing step.
* Also, tools like awk or sed may interpret a regular expression
differently, causing mismatches.
You can still use sed, cut, or awk if you prefer.
Close #3987
Close #1323
2025-02-09 11:53:35 +09:00
Junegunn Choi
818d0be436
Fix change-header-label+change-header
...
Fix #4227
2025-02-07 20:57:09 +09:00
Junegunn Choi
fcd2baa945
Fix scrolling performance when --wrap is enabled
...
Fix #4221
2025-02-06 22:30:39 +09:00
Junegunn Choi
62e0a2824a
Fix nth highlighting
...
Fix #4222
2025-02-06 19:57:39 +09:00
Junegunn Choi
65d74387e7
Stop processing more actions after a terminal action (accept, abort, etc.)
2025-02-02 16:28:32 +09:00
Junegunn Choi
32234be7a2
FZF_KEY enhancements
...
* 'enter' instead of 'ctrl-m'
* 'space' instead of ' '
2025-02-02 02:23:47 +09:00
Junegunn Choi
178b49832e
Fix {show,hide,toggle}-input and add test cases
2025-02-01 17:23:22 +09:00
Junegunn Choi
18cbb4a84d
Display header lines at the top in 'reverse-list' layout
2025-02-01 17:03:59 +09:00
Junegunn Choi
e84afe196a
Add {show,hide,toggle}-input and expose $FZF_INPUT_STATE
2025-02-01 17:03:59 +09:00
Junegunn Choi
e1e171a3c4
Add toggle-bind
2025-02-01 17:03:59 +09:00
Junegunn Choi
d075c00015
Fix --layout reverse-list --no-input
2025-02-01 09:28:02 +09:00
Junegunn Choi
6c0ca4a64a
Add --no-input to hide the input section ( #4210 )
...
Close #2890
Close #1396
You can't type in queries in this mode, and the only way to trigger an
fzf search is to use `search(...)` action.
# Click header to trigger search
fzf --header '[src] [test]' --no-input --layout reverse \
--header-border bottom --input-border \
--bind 'click-header:transform-search:echo ${FZF_CLICK_HEADER_WORD:1:-1}'
2025-01-30 00:50:46 +09:00
Junegunn Choi
51c207448d
Set the default value of --min-height depending on other options
2025-01-27 20:33:47 +09:00
Junegunn Choi
a2aa1a156c
Allow {q} placeholders with range expressions
...
e.g. {q:1}, {q:2..}
2025-01-27 18:04:57 +09:00
Junegunn Choi
e91f10ab16
Enhance click-header event
...
* Expose the name of the mouse action as $FZF_KEY
* Trigger click-header on mouse up
* Enhanced clickable header for `kill` completion
2025-01-27 01:10:08 +09:00
Junegunn Choi
d6584543e9
Make click-header export $FZF_CLICK_HEADER_{NTH,WORD}
2025-01-26 15:37:42 +09:00
Junegunn Choi
7220d8233e
Add 'search' and 'transform-search'
...
Close #4202
2025-01-26 01:50:08 +09:00
Junegunn Choi
04017c25bb
Add 'bell' action to ring the terminal bell
2025-01-25 11:22:32 +09:00
Junegunn Choi
c71e4ddee4
Make it possible to change one-time preview window
2025-01-23 18:45:36 +09:00
Junegunn Choi
32eb8c1be9
Fix resizing of a one-time preview window
2025-01-23 18:41:06 +09:00
Junegunn Choi
c587017830
Fix header window location and size
2025-01-23 14:45:36 +09:00
Junegunn Choi
afc2f05e5e
Fix --info-command when focus event is bound
...
Fix #4198
2025-01-23 09:31:51 +09:00
Junegunn Choi
06547d0cbe
Add --header-lines-border to separate two headers
...
Examples:
# Border only around the header from --header-lines
seq 10 | fzf --header 'hello' --header-lines 2 --header-lines-border
# Both headers with borders
seq 10 | fzf --header 'hello' --header-lines 2 --header-border --header-lines-border
# Use 'none' to still separate two headers but without a border
seq 10 | fzf --header 'hello' --header-lines 2 --header-border --header-lines-border none --list-border
2025-01-23 01:39:57 +09:00
Junegunn Choi
a4db8bd7b5
Make 'current-fg' inherit from 'fg' to simplify configuration
...
If you do not want 'current-fg' to inherit attributes of 'fg', prefix it
with 'regular:' to reset them.
# italic and underline
fzf --color fg:italic,current-fg:underline
# only underline
fzf --color fg:italic,current-fg:regular:underline
2025-01-20 01:02:58 +09:00
Junegunn Choi
c1875af70b
Add 'gap-line' color for the horizontal line on each gap
...
Color inheritance: border >> list-border >> gap-line
2025-01-18 13:48:46 +09:00
Junegunn Choi
1313510890
Do not apply nth style when the whole range is covered
2025-01-16 10:06:11 +09:00
Junegunn Choi
b712f2bb6a
Export the current nth value as $FZF_NTH
2025-01-16 09:23:25 +09:00
Junegunn Choi
938c15ec63
Skip merging nth offsets when unnecessary
2025-01-16 09:05:59 +09:00
Junegunn Choi
3e7f032ec2
Allow displaying --nth parts in a different text style
...
Close #4183
2025-01-16 01:38:45 +09:00
Junegunn Choi
9d6637c1b3
Add gap line
...
Close #4182
2025-01-15 22:23:52 +09:00
Junegunn Choi
ba0935c71f
Fix change-nth
...
* Proper clean-up of caches
* Force rerender list after the action
2025-01-13 12:45:01 +09:00
Junegunn Choi
d83eb2800a
Add change-nth action
...
Example:
# Start with --nth 1, then 2, then 3, then back to the default, 1
echo 'foo foobar foobarbaz' | fzf --bind 'space:change-nth(2|3|)' --nth 1 -q foo
Close #4172
Close #3109
2025-01-13 00:13:31 +09:00
Junegunn Choi
6f943112a9
Align header with the list
2025-01-12 14:58:55 +09:00
Junegunn Choi
4fdc07927f
Refactor --preview-border=line
2025-01-11 19:34:26 +09:00
Junegunn Choi
9030b67e4f
Fix window sizing with borders on the right
2025-01-11 11:39:51 +09:00
Junegunn Choi
43eafdf4b7
Fix preview scrollbar with '--preview-window bottom,border-line'
2025-01-11 00:53:07 +09:00