Junegunn Choi
38040d43e4
Leverage existing bash completion
...
This is a PoC implementation for leveraging existing bash completion
git **<tab>
kubectl **<tab>
2024-09-30 19:08:28 +09:00
Junegunn Choi
4161403a1d
--tmux: Export bash functions
...
CodeQL / Analyze (go) (push) Has been cancelled
Test fzf on Linux / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Fix #4001
2024-09-29 19:33:42 +09:00
Junegunn Choi
2191a44e36
Redraw/hide scroll offset when 'info' property is changed
CodeQL / Analyze (go) (push) Has been cancelled
Test fzf on Linux / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Generate Sponsors README / deploy (push) Has been cancelled
2024-09-12 22:04:19 +09:00
Junegunn Choi
952276dc2d
Add 'noinfo' option to hide scroll offset information in preview window
...
CodeQL / Analyze (go) (push) Waiting to run
Test fzf on Linux / build (push) Waiting to run
Test fzf on macOS / build (push) Waiting to run
fzf --preview 'seq 1000' --preview-window noinfo
Close #2525
2024-09-12 18:31:14 +09:00
Junegunn Choi
8af0af3400
Highlights
...
CodeQL / Analyze (go) (push) Has been cancelled
Test fzf on Linux / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Generate Sponsors README / deploy (push) Has been cancelled
Close #3942
2024-09-01 16:20:25 +09:00
Junegunn Choi
fc69308057
0.55.0
CodeQL / Analyze (go) (push) Has been cancelled
Test fzf on Linux / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Generate Sponsors README / deploy (push) Has been cancelled
2024-08-29 17:10:58 +09:00
Junegunn Choi
c6d620c99e
Add to CHANGELOG
2024-08-29 17:08:23 +09:00
Junegunn Choi
f510a4def6
Test cases for non-default --scheme options
2024-08-29 17:08:23 +09:00
Junegunn Choi
4ae3069c6f
Underscore boundaries should be ranked lower
2024-08-29 17:08:23 +09:00
Junegunn Choi
c0f27751d3
Add exact-boundary-match to man page
2024-08-29 17:08:23 +09:00
Junegunn Choi
efbcd5a683
Require quotes on both sides for boundary matching even in --exact mode
...
Only requiring '-suffix in --exact mode is confusing and not
straightforward. Requiring '-prefix in --exact mode means that
the users can experience unintended mode switches while typing.
e.g.
'it -> fuzzy (many results)
'it' -> boundary (few results)
'it's -> fuzzy (many results)
However, user who intends to input a boundary query should not be
interested in the intermediate results, and the number of matches
decreases as she types, so it should be okay.
On the other hand, user who does intend to type "it's" will be surprised
by the sudden decrease of the match count, but eventually get the right
result.
2024-08-29 17:08:23 +09:00
Junegunn Choi
6a67712944
Implement exact-boundary match type
...
Close #3963
2024-08-29 17:08:23 +09:00
Junegunn Choi
0eee95af57
Fix CTRL-Z handling
...
Fix #3802
This fixes `xterm -e fzf` hangs on CTRL-Z
* Replace SIGSTOP with SIGTSTP
* Do not rely on SIGCONT
2024-08-29 16:41:52 +09:00
Junegunn Choi
a09c6e991a
[vim] Ignore argument to fzf#exec if it's lower than minimum requirement
CodeQL / Analyze (go) (push) Waiting to run
Test fzf on Linux / build (push) Waiting to run
Test fzf on macOS / build (push) Waiting to run
2024-08-28 13:49:41 +09:00
Junegunn Choi
d06c5ab990
[vim] Require fzf 0.53.0 or above (with --tmux)
...
Close #3980
2024-08-28 13:41:46 +09:00
Junegunn Choi
e0924d27b8
Change default --ellipsis to '··'
CodeQL / Analyze (go) (push) Waiting to run
Test fzf on Linux / build (push) Waiting to run
Test fzf on macOS / build (push) Waiting to run
2024-08-27 19:41:39 +09:00
Junegunn Choi
230cc6acc3
Fix fzf-tmux on tmux 3.0
...
CodeQL / Analyze (go) (push) Waiting to run
Test fzf on Linux / build (push) Waiting to run
Test fzf on macOS / build (push) Waiting to run
* Fix #3959
* https://github.com/junegunn/fzf/issues/3635#issuecomment-2085988777
2024-08-24 22:54:29 +09:00
Junegunn Choi
74f196eebb
[vim] Fix callback not run on exit code 1
CodeQL / Analyze (go) (push) Waiting to run
Test fzf on Linux / build (push) Waiting to run
Test fzf on macOS / build (push) Waiting to run
2024-08-23 19:35:25 +09:00
Junegunn Choi
cf2242aea3
[bash] Revert skipping setting up fuzzy path completion
...
CodeQL / Analyze (go) (push) Waiting to run
Test fzf on Linux / build (push) Waiting to run
Test fzf on macOS / build (push) Waiting to run
This partially reverts a2d0e8f not to break backward compatibility.
2024-08-22 19:39:22 +09:00
Junegunn Choi
8cb59e6fca
[vim] Add 'exit' callback
...
CodeQL / Analyze (go) (push) Has been cancelled
Test fzf on Linux / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
A spec can have `exit` callback that is called with the exit status of fzf.
This can be used to clean up temporary resources or restore the original
state when fzf is closed without a selection.
2024-08-19 20:51:26 +09:00
Junegunn Choi
5cce17e80a
Fix preview window incorrectly rendering empty line at the bottom
CodeQL / Analyze (go) (push) Has been cancelled
Test fzf on Linux / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
2024-08-18 11:38:37 +09:00
Junegunn Choi
387c6ef664
Support hyperlinks (OSC 8) in the main window
...
CodeQL / Analyze (go) (push) Has been cancelled
Test fzf on Linux / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Generate Sponsors README / deploy (push) Has been cancelled
Close #2557
2024-08-14 23:04:05 +09:00
Junegunn Choi
581734c369
Fix OSC 8 parser
CodeQL / Analyze (go) (push) Waiting to run
Test fzf on Linux / build (push) Waiting to run
Test fzf on macOS / build (push) Waiting to run
2024-08-14 19:19:28 +09:00
Junegunn Choi
d90a969c00
Add support for hyperlinks in preview window
...
CodeQL / Analyze (go) (push) Waiting to run
Test fzf on Linux / build (push) Waiting to run
Test fzf on macOS / build (push) Waiting to run
Close #2165
2024-08-14 08:51:34 +09:00
Junegunn Choi
e215e2daf3
Allow comments in $FZF_DEFAULT_OPTS and $FZF_DEFAULT_OPTS_FILE
...
CodeQL / Analyze (go) (push) Waiting to run
Test fzf on Linux / build (push) Waiting to run
Test fzf on macOS / build (push) Waiting to run
Close #3961
2024-08-13 18:51:02 +09:00
Junegunn Choi
e28f5aa45b
Make sure preview command is not run before Terminal is ready
CodeQL / Analyze (go) (push) Has been cancelled
Test fzf on Linux / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
2024-08-11 14:48:52 +09:00
Junegunn Choi and GitHub
a2d0e8f233
[bash] Enable fuzzy path completion for all commands ( #3958 )
...
All commands with no custom completion defined.
Close #3957
2024-08-11 14:22:21 +09:00
Junegunn Choi
4e85f72f0e
Fix extra scroll offset in multi-line mode (--read0 or --wrap)
...
CodeQL / Analyze (go) (push) Has been cancelled
Test fzf on Linux / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Fix #3950
2024-08-04 10:52:17 +09:00
Junegunn Choi
f90985845d
Fix '--tmux bottom' when the status line is not at the bottom
...
CodeQL / Analyze (go) (push) Has been cancelled
Test fzf on Linux / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Generate Sponsors README / deploy (push) Has been cancelled
Fix #3948
2024-08-02 23:11:20 +09:00
Junegunn Choi
af4917dbb6
0.54.3
2024-07-31 21:51:54 +09:00
Junegunn Choi
d9404fcce4
Remove stale comment
2024-07-28 10:13:41 +09:00
Junegunn Choi
9b27d68a37
Fix build error
2024-07-27 19:13:24 +09:00
Junegunn Choi
b99d884e57
Minor refactoring
2024-07-27 18:59:50 +09:00
Junegunn Choi
587df594b8
Fix incompatibility of adaptive height and 'start:reload'
...
This command would cause a deadlock and make fzf crash:
fzf --bind 'start:reload:ls' --height ~100%
Because,
1. 'start' event is handled by Terminal
2. When 'reload' is bound to 'start', fzf avoids starting the initial reader
3. Terminal waits for the initial input to find the right height when
adaptive height is used
4. Because the initial reader is not started, Terminal never gets the
initial list
5. No chance to trigger 'start:reload', hence deadlock
This commit fixes the above problem by extracting the reload command
bound to 'start' event and starting the initial reader with that command
instead of letting Terminal start it.
This commit also makes the environment variables available to
$FZF_DEFAULT_COMMAND.
FZF_DEFAULT_COMMAND='echo $FZF_QUERY' fzf --query foo
Fix #3944
2024-07-27 11:30:25 +09:00
Junegunn Choi
b896e0d314
0.54.2
2024-07-26 17:44:09 +09:00
Junegunn Choi
559fb7ee45
Revert "Prefer LightRenderer over tcell on Windows"
...
This reverts commit dca2262fe6 .
> For mouse support on mintty
> Fix #3847
The current implementation LightRenderer for Windows is unable to accept
non-ASCII input unlike the tcell renderer. So even though it supports
mouse on mintty, we shouldn't use it as the default.
* #3799
* #3847
2024-07-26 01:43:21 +09:00
Junegunn Choi
62545cd983
Display repology image in 3 columns
2024-07-25 12:49:02 +09:00
Junegunn Choi
4cc5609d8b
Fix invalid highlighting of truncated multi-line items
2024-07-21 01:09:39 +09:00
Junegunn Choi
50fa90dfb8
0.54.1
2024-07-19 17:10:49 +09:00
Junegunn Choi
8d4d184fc6
Change WinGet workflow to drop 'v' prefix from tag ( #3927 )
...
https://github.com/vedantmgoyal9/winget-releaser?tab=readme-ov-file#configuration-options-%EF%B8%8F
2024-07-17 12:38:10 +09:00
Junegunn Choi
9e92b6f11e
0.54.0
...
New tags will have `v` prefix.
* https://github.com/junegunn/fzf/issues/2879
* https://github.com/golang/go/issues/32945
Close #2879
2024-07-08 22:51:48 +09:00
Junegunn Choi
6cbde812f6
[bash] Add code to the default list of programs to support completion
...
Close #3843
2024-07-08 22:51:47 +09:00
Junegunn Choi
3b2e932c13
Bind CTRL-/ and ALT-/ to toggle-wrap by default
2024-07-08 22:51:47 +09:00
Junegunn Choi
b44ab9e33c
[completion] Use --wrap option in process completion
...
And remove the short preview window for showing the whole command.
Because it is important to be able to see the whole command before
deciding to kill it.
2024-07-06 10:20:58 +09:00
Junegunn Choi
8f4c23f1c4
Remove --walker-path-sep
...
Related: #3859 #3907 #3909
2024-07-05 20:15:03 +09:00
Junegunn Choi and GitHub
23a391e715
[zsh] Fix backslash escaping ( #3909 )
...
Fix #3859
To test:
FZF_CTRL_T_COMMAND="echo -E 'foo\bar\baz'; echo -E 'hello\world'"
_fzf_compgen_path() {
eval $FZF_CTRL_T_COMMAND
}
source shell/key-bindings.zsh
source shell/completion.zsh
2024-07-05 01:46:36 +09:00
Junegunn Choi
035b0be29f
Adjust offset immediately after 'first', 'last', and 'pos'
...
seq 100 | fzf --multi --sync --bind 'result:last+transform:for _ in $(seq 10); do echo -n "+select+down"; done'
2024-07-03 22:06:17 +09:00
Junegunn Choi
cfc149e994
Avoid printing ANSI reset codes
...
fzf --border --bind 'start:transform-border-label:echo -e "\x1b[0mfoo"'
2024-07-02 09:20:10 +09:00
Junegunn Choi
2faffbd1b7
Fill background color in padding area
...
fzf --color bg:blue --border --padding 1,2
2024-07-01 21:39:09 +09:00
Junegunn Choi
797a01aed4
[man] Clarify --walker-path-sep=CHAR
2024-06-29 18:44:28 +09:00
Junegunn Choi
bf515a3d32
Add --walker-path-sep=CHAR to use a different path separator
...
This is needed when you run a Windows binary on WSL or zsh on Windows
where forward slashes are expected.
export FZF_DEFAULT_OPTS='--walker-path-sep /'
Close #3859
2024-06-29 17:13:31 +09:00
Junegunn Choi
a06745826a
[zsh] Fix completion error on openSUSE Tumbleweed
...
Fix suggested by @LangLangBart
Fix #3890
2024-06-28 16:59:56 +09:00
Junegunn Choi
0420ed4f2a
Empty --marker-multi-line if --marker is empty
2024-06-25 20:49:42 +09:00
Junegunn Choi
3b944addd4
Allow removing header line with change-header and transform-header
...
If the new header is an empty string.
fzf --header loading --bind 'start:reload:sleep 3; ls' --bind 'load:change-header:'
fzf --header loading --bind 'start:reload:sleep 3; ls' --bind 'load:transform-header:'
2024-06-25 17:14:11 +09:00
Junegunn Choi and GitHub
70bf8bc35d
Add --wrap option and 'toggle-wrap' action ( #3887 )
...
* `--wrap`
* `--wrap-sign`
* `toggle-wrap`
Close #3619
Close #2236
Close #577
Close #461
2024-06-25 17:08:47 +09:00
Junegunn Choi
cc2b2146ee
ADVANCED.md: Remove unnecessary : | fzf
...
See 5b52833
2024-06-24 17:23:14 +09:00
Junegunn Choi
8689f5f230
Fix rubocop warning
2024-06-24 17:16:56 +09:00
Junegunn Choi
5b52833785
Do not start the initial reader if 'reload*' is bound to 'start'
2024-06-24 17:05:53 +09:00
Junegunn Choi
a70ea4654e
Fix regression in separator display
2024-06-23 18:23:46 +09:00
Junegunn Choi
b02bf9b6bb
Fix panic on extremely short terminals
...
Fix #3889
2024-06-23 11:27:03 +09:00
Junegunn Choi
7c2ffd3fef
Make transform*, --info-command, and execute-silent cancellable
...
Users can press CTRL-C after 1 second to terminate the command.
Close #3883
2024-06-22 17:24:47 +09:00
Junegunn Choi
2326c74eb2
Code cleanup
2024-06-20 17:06:44 +09:00
Junegunn Choi
b9d15569e8
Fix test case for validateSign
2024-06-20 01:48:24 +09:00
Junegunn Choi
c3cc378d89
Allow empty pointer and marker
...
Close #3879
2024-06-20 01:45:06 +09:00
Junegunn Choi
27d1f5e0a8
Fix typos
2024-06-20 00:58:51 +09:00
Junegunn Choi
540632bb9e
Add --info-command for customizing the input text
...
Close #3866
2024-06-20 00:53:18 +09:00
Junegunn Choi
d9c028c934
fzf-preview.sh: Let chafa decide the right format
...
Close #3822
Output encoding:
-f, --format=FORMAT Set output format; one of [iterm, kitty, sixels,
symbols]. Iterm, kitty and sixels yield much higher
quality but enjoy limited support. Symbols mode yields
beautiful character art.
2024-06-19 19:25:46 +09:00
Junegunn Choi
c54ad82e8d
Clarify that --nth applies after --with-nth transformation
...
Close #3873
2024-06-19 17:01:35 +09:00
Junegunn Choi
e2401aca68
Add 'offset-middle' action
2024-06-17 18:34:10 +09:00
Junegunn Choi
59943cbb48
Fire 'result' even when input stream is not complete
...
Related: #3866
2024-06-17 17:54:52 +09:00
Junegunn Choi
02634d404d
Remove {fzf:query} from man page
2024-06-17 17:53:02 +09:00
Junegunn Choi
ed12925f7d
--sync: Suppress initial render also when focus event is bound
2024-06-17 17:00:49 +09:00
Junegunn Choi
e0ddb97ab4
Improved --sync behavior
...
When --sync is provided, fzf will not render the interface until the
initial filtering and associated actions (bound to any of 'start',
'load', or 'result') are complete.
2024-06-17 00:11:57 +09:00
Junegunn Choi
6de0a7ddc1
--sync: Do not start TUI until initial filtering is complete
2024-06-15 10:46:28 +09:00
Junegunn Choi
79196c025d
Clean up GitHub Actions workflow
...
fzf does not uses tcell-based renderer on systems where light renderer
can be used since dca2262 . So this has become meaningless.
2024-06-15 10:27:54 +09:00
Junegunn Choi
94c33ac020
Fix panic when parent process is killed
...
Fix #3863
2024-06-15 10:23:03 +09:00
Junegunn Choi
b2ecb6352c
Make GET endpoint available from 'execute' and 'transform' actions
2024-06-14 21:33:42 +09:00
Junegunn Choi
9dc3ed638a
--walker-skip should also handle symlinks to directories
...
Fix #3858
2024-06-13 22:55:31 +09:00
Junegunn Choi
dca2262fe6
Prefer LightRenderer over tcell on Windows
...
For mouse support on mintty
Fix #3847
2024-06-12 21:53:18 +09:00
Junegunn Choi
0684a20ea3
Fix invalid mouse offset for --height on Windows
2024-06-12 21:18:02 +09:00
Junegunn Choi
a1a72bb8d1
Do not open tmux or winpty in --filter mode
2024-06-12 21:02:48 +09:00
Junegunn Choi
7fc13c5cfd
Less aggressive chunk cache invalidation for --tail
2024-06-10 20:33:55 +09:00
Junegunn Choi
dfee7af57b
Fix divide by zero error with --tiebreak=end for long items
...
Fix #3846
2024-06-10 08:26:53 +09:00
Junegunn Choi
590060a16b
Remove unused field
2024-06-07 17:05:33 +09:00
Junegunn Choi
368294edf6
Reduce flickering of the list when the list is truncated by --tail
2024-06-07 16:59:09 +09:00
Junegunn Choi
c4a9ccd6af
0.53.0
2024-06-06 22:03:26 +09:00
Junegunn Choi
cbf91f2ed3
ADVANCED.md: /dev/tty redirection no longer required
2024-06-06 21:58:02 +09:00
Junegunn Choi
b1460d4787
hasPreviewFlags should ignore escaped placeholder
...
This reload command wouldn't run before the fix:
: | fzf --bind 'start:reload:echo \{}'
2024-06-06 17:40:15 +09:00
Junegunn Choi
7dc9e14874
Update docs
2024-06-06 17:40:15 +09:00
Junegunn Choi
1616ed543d
Fix index out of bounds error caused by outdated offset
2024-06-06 00:23:58 +09:00
Junegunn Choi
dc73fba188
[man] Clarification on --scheme options
2024-06-05 14:29:50 +09:00
Junegunn Choi
ef148dfd37
Handle int32 overflow
...
yes | fzf --tail=10 --preview 'echo "{n}"'
2024-06-05 14:29:50 +09:00
Junegunn Choi
93bbb3032d
Add --tail=NUM to limit the number of items to keep in memory
2024-06-04 17:50:46 +09:00
Junegunn Choi
4c83d8596d
Add new options to bash completion
2024-06-03 09:45:20 +09:00
Junegunn Choi
d453e6d7db
Update ADVANCED.md: Use --tmux instead of fzf-tmux
2024-06-03 09:41:40 +09:00
Junegunn Choi
c29533994f
Fix invalid default of selected-hl (--color)
...
It should default to 'hl' instead of 'current-hl'
2024-06-02 18:09:41 +09:00
Junegunn Choi
1afe13b5b5
Merge remote-tracking branch 'origin/master' into devel
2024-06-02 17:59:04 +09:00
Junegunn Choi
36600eaaa9
Update CHANGELOG: clarification
2024-06-02 17:58:44 +09:00
Junegunn Choi
e2f93e5a2d
--tmux vs. --height: Last one wins
2024-06-01 22:11:15 +09:00
Junegunn Choi
cfdf2f1153
Update README
2024-06-01 16:20:03 +09:00