Junegunn Choi
55193ee4dc
Fix double subtraction of header lines from FZF_TOTAL_COUNT
...
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Close #4692
2026-02-25 00:50:47 +09:00
Junegunn Choi
dce248ac6d
Revert "Add GitHub action for labelling PRs"
...
This reverts commit 0ff13dcf .
2026-02-24 20:26:39 +09:00
Junegunn Choi
0ff13dcfbe
Add GitHub action for labelling PRs
2026-02-24 20:20:04 +09:00
Junegunn Choi
b9804f5873
Add change-header-lines action to dynamically change --header-lines
...
All input lines now enter the chunklist with sequential indices, and
header lines are excluded from matching via Pattern.startIndex and
PassMerger offset. This allows the number of header lines to be changed
at runtime with change-header-lines(N), transform-header-lines, and
bg-transform-header-lines actions.
- Remove EvtHeader event; header items are read directly from chunks
- Add startIndex to Pattern and PassMerger for skipping header items
- Add targetIndex field to Terminal for cursor repositioning across
header-lines changes
Close #4659
2026-02-23 01:48:03 +09:00
bitraid
385cccd362
fish: Command history improvements ( #4672 )
...
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
This change provides the following improvements:
- Changes the view of the command history list, so that the script no longer depends on perl for performance.
- Enables syntax color highlighting on fish v4.3.3 and newer.
- Provides a preview window with the selected commands, and expanded view of the highlighted command if available.
- Improves the delete functionality, by successfully handling very large numbers of selected commands.
- Inserts commands in their formatted form with `<Alt-Enter>`.
---
* fish: Change history list view
The view of the command history is changed, so that no manipulation is
performed on the output of history command: The history item count
number is replaced by the Unix time of the command, multi-line display
is disabled and line wrapping is enabled by default. On fish v4.3.3
and newer, the use of ANSI color codes for syntax highlighting is now
possible, while the script no longer depends on perl for performance.
Fixes #4661
* fish: Reformat selected history commands with ALT-ENTER
* Add $FZF_WRAP environment variable
The variable is set when line wrapping is enabled. It has the value
`word` if word wrapping mode is set, otherwise it has the value `char`.
* fish: Add command history preview
The preview shows the highlighted command and any selected commands,
after first being formatted and colorized by fish_indent. The timestamp
of the highlighted command in the preview is converted to strftime
format "%F %a %T" if the date command is available.
The preview is hidden on start, and is displayed if more than 100
columns are available and one of the following conditions are met:
- The highlighted item doesn't completely fit in list view (line
wrapping is enabled for the preview and is now disabled for the list).
- The highlighted item contains newlines (multi-line commands or
strings).
- The highlighted item contains chained commands in a single line, that
can be broken down by the formatter for cleaner view.
- One or more commands are marked as selected.
* fish: Handle deletion of large number of selected history entries
* fish: Change wrapping options for the preview-window
2026-02-19 23:41:26 +09:00
Junegunn Choi
4a684b6c78
Fix test failure
2026-02-19 21:37:19 +09:00
Junegunn Choi
4a195e6323
Add --preview-wrap-sign
2026-02-19 21:30:23 +09:00
Junegunn Choi
0ecbf3f475
Fix missing wrap sign at ANSI color boundary
2026-02-19 19:49:13 +09:00
Junegunn Choi
74e98cac5c
Fix --preview-window follow not working correctly with wrapping (contd.)
2026-02-18 21:55:28 +09:00
Junegunn Choi
c338df02c4
Fix --preview-window follow not working correctly with wrapping
...
Fix #3243
Fix #4258
2026-02-18 21:36:35 +09:00
Junegunn Choi
69e9abdab4
Implement word wrapping 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
2026-02-18 15:20:56 +09:00
Junegunn Choi
b6411beaa1
Implement word wrapping in the preview window
...
Example:
fzf --preview 'bat --style=plain --color=always {}' \
--preview-window wrap-word \
--bind space:toggle-preview-wrap-word
Close https://github.com/junegunn/fzf/discussions/3383
2026-02-18 13:35:02 +09:00
Junegunn Choi
b56d614ba2
Add underline style variants and underline color support
...
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Support double, curly, dotted, and dashed underline styles via --color
(e.g. underline-curly) and ANSI passthrough (SGR 4:N, 58, 59) with --ansi.
Close #4633
Close #4678
Thanks to @shtse8 for the test cases.
2026-02-15 01:06:46 +09:00
LangLangBart
7d9724157c
fix(terminal): handle SIGHUP signal ( #4668 )
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
2026-02-01 19:51:49 +09:00
Junegunn Choi
bc8967632b
Fix preview process not killed on exit
...
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Thanks to @LangLangBart for the investigation and the suggested fix.
Fix #4667
2026-02-01 11:32:40 +09:00
Junegunn Choi
6360c9261c
Fix coloring of items with zero-width characters
...
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
This commit fixes incorrect coloring for items that contain zero-width
characters. It also makes ellipsis coloring consistent when text is
trimmed from either the left or the right.
Fix #4620
Close #4646
2026-02-01 11:08:23 +09:00
Junegunn Choi
b389616030
Fix track-current unset after a combined movement action
...
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Fix #4649
Close #4663
2026-01-26 22:00:30 +09:00
Junegunn Choi
3f94bcb5bf
Cancel key reading when 'execute' triggered via a server request ( #4653 )
...
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 #4524
Close #4648
2026-01-09 00:29:40 +09:00
Marcel Meyer
6eb4b41e34
Add generic utils constraint function
2025-12-23 09:14:33 +09:00
Marcel Meyer
14b5e1d88c
Replace utils Min, Max with builtin min, max
2025-12-23 09:14:33 +09:00
RT
771e35b972
feat: add alt-gutter color option ( #4602 )
...
* Add alt-gutter color option
* Simplify the code
---------
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com >
2025-11-29 10:43:13 +09:00
LangLangBart
3db63f5e52
fix(terminal): correct display width calculation with maxWidth ( #4596 )
...
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 #4593
* test(core): add test for --freeze-right with long ellipsis
2025-11-20 09:09:36 +09:00
Junegunn Choi
60b35e748b
Header and footer should not be wider than the list
...
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
Example:
WIDE=$(printf 'x%.0s' {1..1000})
(echo $WIDE; echo $WIDE) |
fzf --header-lines 1 --style full --ellipsis XX --header "$WIDE" \
--no-header-lines-border --footer "$WIDE" --no-footer-border
2025-11-15 11:41:51 +09:00
Junegunn Choi
3f499f055e
Avoid truncating ellipsis 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-11-13 23:00:32 +09:00
Junegunn Choi
1df99db0b2
Keep the previous delimiter before frozen columns
2025-11-13 22:38:49 +09:00
phanium
91fab3b3c2
Fix lint warnings ( #4586 )
...
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -fix -test ./...
2025-11-12 22:05:17 +09:00
Junegunn Choi
b9f2bf64ff
Add --freeze-right=N option to keep the rightmost N fields visible
2025-11-12 22:00:27 +09:00
Junegunn Choi
07d53cb7e4
Add --freeze-left=N option to keep the leftmost N fields visible
2025-11-12 22:00:27 +09:00
Junegunn Choi
8a05083503
Fix reading an extra key after a terminal action
...
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Fix #4578
2025-11-09 15:36:07 +09:00
phanium
e659b46ff5
feat: append spinner in the end when --info=inline ( #4567 )
...
Test:
go run main.go --query "$(seq 100)" --info inline --border < <(sleep 60)
go run main.go --query "$(seq 100)" --info inline --info-command 'echo hello' --border < <(sleep 60)
Close #4344
Close #619
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com >
2025-11-09 10:44:27 +09:00
Junegunn Choi
a0cabe021d
Fix bug preventing 'ctrl-h' from being bound to an action
...
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 #4556
2025-10-15 12:16:09 +09:00
Junegunn Choi
01cb38a5fb
Add Unix domain socket support for --listen
...
Close #4541
2025-10-09 01:07:59 +09:00
Junegunn Choi
dd46a256c0
Fix offset-up and offset-down with --layout=reverse-list
...
Related: 3df06a1c68
2025-10-09 00:17:00 +09:00
Junegunn Choi
d19ce0ad8d
Add 'best' action
2025-10-09 00:17:00 +09:00
Junegunn Choi
ed7becfb47
Go to the closest match when disabling raw mode
2025-10-09 00:17:00 +09:00
Junegunn Choi
9ace1351ff
ADD $FZF_DIRECTION
2025-10-09 00:17:00 +09:00
Junegunn Choi
0df7d10550
Rename: '--color hidden' to '--color nomatch'
2025-10-09 00:17:00 +09:00
Junegunn Choi
91e119a77e
Fix non-matching items not refreshing after clearing query
2025-10-09 00:17:00 +09:00
Junegunn Choi
3984161f6c
Fix: 'hidden' style not applied to text without colors
2025-10-09 00:17:00 +09:00
Junegunn Choi
91beacf0f4
Add special 'strip' style attribute for stripping colors
...
Test cases:
fd --color always | fzf --ansi --delimiter /
fd --color always | fzf --ansi --delimiter / --nth -1 --color fg:dim,nth:regular
fd --color always | fzf --ansi --delimiter / --nth -1 --color fg:dim:strip,nth:regular
fd --color always | fzf --ansi --delimiter / --nth -1 --color fg:dim:strip,nth:regular --raw
fd --color always | fzf --ansi --delimiter / --nth -1 --color fg:dim:strip,nth:regular,hidden:strikethrough --raw
fd --color always | fzf --ansi --delimiter / --nth -1 --color fg:dim:strip,nth:regular,hidden:strip:strikethrough --raw
fd --color always | fzf --ansi --delimiter / --nth -1 --color fg:dim:strip,nth:regular,hidden:strip:dim:strikethrough --raw
2025-10-09 00:17:00 +09:00
Junegunn Choi
e6ad01fb90
Revise color configuration
2025-10-09 00:17:00 +09:00
Junegunn Choi
8f0c91545d
Add $FZF_RAW for conditional actions
2025-10-09 00:17:00 +09:00
Junegunn Choi
c1f8d18a0c
Add enable-raw and disable-raw actions
2025-10-09 00:17:00 +09:00
Junegunn Choi
8585969d6d
Refactor action implementation
2025-10-09 00:17:00 +09:00
Junegunn Choi
8a943a9b1a
Remove TODO comments
2025-10-09 00:17:00 +09:00
Junegunn Choi
65df0abf0e
Introduce 'raw' mode
2025-10-09 00:17:00 +09:00
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
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
Junegunn Choi
a67aa85820
Style change: thinner gutter column ( #4521 )
2025-09-16 21:22:56 +09:00