Junegunn Choi
febaadbee5
Fix stray character artifacts when scrollbar is hidden
...
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Generate Sponsors README / deploy (push) Has been cancelled
Fix #4537
2025-10-04 21:56:56 +09:00
mickychang9
760d1b7c58
refactor: use maps.Copy and maps.Clone ( #4518 )
...
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Signed-off-by: mickychang9 <mickychang9@outlook.com >
2025-09-29 18:11:19 +09:00
Junegunn Choi
9bdacc8df2
Update --help output to avoid confusion
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
2025-09-28 23:56:51 +09:00
Junegunn Choi
db2e95b1f2
Remove unused field
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Generate Sponsors README / deploy (push) Has been cancelled
2025-09-27 22:34:12 +09:00
alex-huff
687074e772
merger: fix chunk cache never getting cleared ( #4531 )
...
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Commit 7fc13c5 indroduced less aggressive cache invalidation for the
chunk cache but saved the new revision before comparing it with the old
one, and so the cache was never considered invalid.
Fixes #4529
2025-09-27 09:01:13 +09:00
Massimo Mund
148b0a94cd
tui/light: consume full 7-byte CSI sequences to prevent leftover printing ( #4528 )
...
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
- Fix parsing in escSequence so 7-byte CSI forms (e.g. ESC [ 5 ; 10 ~) set *sz = 7 and the entire sequence is consumed.
- Prevents trailing bytes (like 10~) from remaining in the input buffer and being printed as stray characters.
2025-09-23 23:33:41 +09:00
Junegunn Choi
2a92c7d792
Adjust base16 (16) theme ( #4501 )
...
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Generate Sponsors README / deploy (push) Has been cancelled
Motivation:
`--color base16` can be a better default than `dark` or `light`, since it uses
the colors defined by the current theme. This usually blends in more
naturally and works well in both light and dark modes.
However, some elements were previously hard-coded with white or black
foreground colors, which can cause rendering issues in certain terminal
themes.
2025-09-17 19:38:49 +09:00
Junegunn Choi
f5975cf870
Add --gutter to --help and man page
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
2025-09-16 21:30:01 +09:00
Junegunn Choi
a67aa85820
Style change: thinner gutter column ( #4521 )
2025-09-16 21:22:56 +09:00
Junegunn Choi
6684771cbf
Fix CTRL-Z for tcell renderer by using the official API
...
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
See https://github.com/gdamore/tcell/pull/431
2025-09-14 11:41:12 +09:00
Junegunn Choi
f5f894ea47
Fix rendering of multiple OSC 8 links in a single line
...
Fix #4517
2025-09-14 11:26:47 +09:00
Massimo Mund
ae12e94b1f
Add sub-word actions ( #3997 )
...
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Generate Sponsors README / deploy (push) Has been cancelled
Add `backward-subword`, `forward-subword`, `kill-subword`, `backward-kill-subword` actions.
2025-09-05 19:38:22 +09:00
Massimo Mund
9ed971cc90
Add keybindings for CTRL, ALT, SHIFT + UP, DOWN, RIGHT, LEFT, HOME, END, BACKSPACE, DELETE & more ( #3996 )
...
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
* Added tests for `LightRenderer`
* Added common SHIFT, ALT and ALT+SHIFT key sequences
* Added common CTRL key sequences
* Added common CTRL+ALT, CTRL+SHIFT, CTRL+ALT+SHIFT key sequences
* Added proper xterm META modifier handling
according to defc6dd568/input.c (L357-L375)
* Fix `ctrl-backspace` and `ctrl-alt-backspace`
* Fix broken tcell tests on windows by swallowing Resize events
* Added tests for FullscreenRenderer
* Removed own fork of tcell and updated tcell to 2.9.0
tcell 2.9.0 is needed for `Ctrl-Alt-*` and `Ctrl-Alt-Shift-*` shortcuts in Windows
* Replace conditional checks with switch statements to improve readability
* Replace long conditionals with constant slices to improve readability
* Bind `ctrl-bspace` (`ctrl-h`) to `backward-delete-char` by default
Since we now distinguish between Backspace and Ctrl-Backspace, Ctrl-Backspace should trigger the same action as Backspace by default. In that way nothing changes for the user but you can bind other actions to Ctrl-Backspace when desired.
2025-09-05 14:56:51 +09:00
zhedazijingang
59dc7f178f
refactor: replace []byte(fmt.Sprintf) with fmt.Appendf ( #4507 )
...
Signed-off-by: zhedazijingang <unwrap_or_else@outlook.com >
2025-08-31 22:01:35 +09:00
Junegunn Choi
5546c65491
Fix rendering of items with tabs when using a non-default ellipsis
...
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Generate Sponsors README / deploy (push) Has been cancelled
Fix #4505
2025-08-27 23:31:31 +09:00
Junegunn Choi
0a8ff7899c
Do not unset FZF_DEFAULT_* variables when using winpty
...
Fix #4497
Fix #4400
2025-08-22 19:24:01 +09:00
Ioannis Pinakoulakis
49967f3d45
Use fixed-length array when possible ( #4488 )
2025-08-15 21:16:41 +09:00
longhutianjie
978b6254c7
chore: remove redundant word in comment ( #4490 )
...
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Signed-off-by: longhutianjie <keplrnewton@icloud.com >
2025-08-14 13:26:29 +09:00
Junegunn Choi
1afd143810
Fix incorrect truncation of --info-command with --info=inline-right
...
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Generate Sponsors README / deploy (push) Has been cancelled
Fix #4479
2025-08-08 18:51:24 +09:00
Junegunn Choi
179aec1578
Fix '--color nth:regular' not to reset ANSI attributes of the original text
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Generate Sponsors README / deploy (push) Has been cancelled
2025-08-03 00:54:26 +09:00
Junegunn Choi
af0014aba8
Fix a bug where you cannot unset the default --nth using change-nth
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
2025-08-03 00:29:05 +09:00
Junegunn Choi
da3d995709
Fix $FZF_CLICK_{HEADER,FOOTER}_WORD with ANSI colors and tabs
2025-08-02 16:47:09 +09:00
Junegunn Choi
4efcc344c3
Add 'trigger(KEY_OR_EVENT[,...])' action
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
2025-07-23 19:41:06 +09:00
Junegunn Choi
5818b58350
Better fix for #4465 - remove unnecessary erase
2025-07-23 19:30:52 +09:00
Junegunn Choi
7941129cc4
Add 'click-footer' event
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
2025-07-22 23:24:23 +09:00
Junegunn Choi
069d71a840
Fix rendering error when hiding a preview window without border
...
This was a regression introduced in cdcab267 .
Fix #4465
2025-07-22 19:23:10 +09:00
Junegunn Choi
08027e7a79
Fix --no-header-lines-border behavior
...
It should be different from --header-lines-border=none according to the
man page. It should merge two headers unlike the latter.
2025-07-22 19:16:55 +09:00
Junegunn Choi
ead302981c
Add support for {*n} and {*nf} placeholder
...
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Close #4458
2025-07-20 10:53:58 +09:00
Junegunn Choi
82c9671f79
Fix selection lost on revision bump
2025-07-06 22:02:12 +09:00
Junegunn Choi
d364a1122e
Fix regression where header is not updated
2025-07-06 20:24:23 +09:00
Junegunn Choi
fb570e94e7
Update: make generate
2025-07-06 20:03:13 +09:00
Junegunn Choi
6e3c830cd2
Add 'multi' event triggered on multi-selection changes
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
2025-07-06 10:05:25 +09:00
Junegunn Choi
ff1550bb38
Normalize halfwidth and fullwidth characers for matching
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Generate Sponsors README / deploy (push) Has been cancelled
2025-07-03 20:57:19 +09:00
Junegunn Choi
531dd6fb4f
Update copyright year
2025-07-02 22:10:05 +09:00
Junegunn Choi
ba035f2a76
Run preview command when preview window appears after CTRL-Z
...
80b8846318
2025-07-02 21:40:02 +09:00
Junegunn Choi
d34675d3c9
Fix panic caused by incorrect update ordering
...
Fix #4442
Make sure to prepare windows before rendering elements.
Thanks to @nugged for the report.
2025-07-02 21:28:11 +09:00
Junegunn Choi
397fe8e395
0.63.0
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Generate Sponsors README / deploy (push) Has been cancelled
2025-06-28 01:11:00 +09:00
Junegunn Choi
111266d832
Reset full-background property after a new line
2025-06-27 23:21:48 +09:00
Junegunn Choi
79690724d8
Fix exact boundary match with --scheme=path or --tiebreak end
...
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Fix #4438
2025-06-26 22:33:58 +09:00
Junegunn Choi
5ed87ffcb9
Fix highlight offsets of multi-line entries
...
Fix regression from 4811e52a
2025-06-26 20:48:34 +09:00
Junegunn Choi
debf3d8a8a
Refactor ANSI parser
2025-06-25 08:26:14 +09:00
Junegunn Choi
4811e52af3
Support full-line background color in the list section
...
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Close #4432
2025-06-25 02:12:10 +09:00
Junegunn Choi
8d81730ec2
with-nth: Do not trim trailing whitespaces with background colors
...
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Example:
echo -en ' \e[48;5;232mhello\e[48;5;147m ' | fzf --ansi --with-nth 1
2025-06-24 20:27:24 +09:00
Junegunn Choi
330a85c25c
Allow \e[K in addition to \e[0K for full-line background
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
2025-06-23 22:12:32 +09:00
Junegunn Choi
3a21116307
Terminate running background transform on exit (addendum)
...
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Generate Sponsors README / deploy (push) Has been cancelled
Close #4422
2025-06-22 01:53:25 +09:00
Junegunn Choi
247d168af6
Terminate running background transform on exit
...
Close #4422
2025-06-21 23:24:38 +09:00
Junegunn Choi
b2a8a283c7
Reorganize code to ensure deletion of temp files
2025-06-21 23:06:46 +09:00
Junegunn Choi
c36ddce36f
Add bg-cancel action to ignore running background transforms
...
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Close #4430
Example:
# Implement popup that disappears after 1 second
# * Use footer as the popup
# * Use `bell` to ring the terminal bell
# * Use `bg-transform-footer` to clear the footer after 1 second
# * Use `bg-cancel` to ignore currently running background transform actions
fzf --multi --list-border \
--bind 'enter:execute-silent(echo -n {+} | pbcopy)+bell' \
--bind 'enter:+transform-footer(echo Copied {} to clipboard)' \
--bind 'enter:+bg-cancel+bg-transform-footer(sleep 1)'
2025-06-21 17:28:48 +09:00
Junegunn Choi
c35d9cff7d
Avoid full redraw when changing header and footer windows
2025-06-21 12:40:56 +09:00
Junegunn Choi
549ce3cf6c
Do not reserve a single column at the end when scrollbar is hidden
...
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Close #4410
Example:
fzf --pointer '' --marker '' --no-scrollbar --wrap --wrap-sign ''
2025-06-20 08:22:58 +09:00