Junegunn Choi
8a74976c1f
Add track-current, untrack-current, and toggle-track-current ( #3699 )
...
Close #3691
6 months ago
Junegunn Choi
008fb9d258
Fix reload and reload-sync behaviors
...
https://github.com/junegunn/fzf/discussions/3696#discussioncomment-8915593
6 months ago
Junegunn Choi
db6db49ed6
Increase the buffer size for POST requests
...
Close #3685
6 months ago
Junegunn Choi
05453881c3
Set a 2-second timeout for POST requests
...
Close #3685
6 months ago
Junegunn Choi
c7ee071efa
Fix panic caused by invalid cursor index
...
Fix #3681
7 months ago
Junegunn Choi
8977c9257a
Limit the maximum number of focus events to process at once
7 months ago
Junegunn Choi
e74b1251c0
Embed shell integration scripts in fzf binary (`--bash` / `--zsh` / `--fish`) ( #3675 )
...
This simplifies the distribution, and the users are less likely to have
problems caused by using incompatible scripts and binaries.
# Set up fzf key bindings and fuzzy completion
eval "$(fzf --bash)"
# Set up fzf key bindings and fuzzy completion
eval "$(fzf --zsh)"
# Set up fzf key bindings
fzf --fish | source
7 months ago
Junegunn Choi
d282a1649d
Add walker options and replace 'find' with the built-in walker ( #3649 )
7 months ago
Junegunn Choi
26244ad8c2
Fix preview area not being cleared when using certain types of border styles
...
fzf --preview 'sleep 3; date' --preview-window hidden \
--bind ctrl-/:change-preview-window:up,border-bottom
7 months ago
Junegunn Choi
fa0aa5510d
Kill preview process when hiding the preview window
...
via toggle-preview, hide-preview, or change-preview-window
7 months ago
Junegunn Choi
eec557b6aa
Fix invalid memory access when the preview window becomes hidden
7 months ago
onee-only
61bc129e1d
Update parseGetParams to call strconv.Atoi when params are valid
7 months ago
onee-only
52210a57f0
Update error return position according to convention
7 months ago
onee-only
8061a2f108
Remove duplicate code
7 months ago
Junegunn Choi
686f9288fc
Allow iTerm2 image data that ends with 'ESC \' ( #3646 )
7 months ago
Junegunn Choi
1833670fb9
Add $FZF_DEFAULT_OPTS_FILE ( #3618 )
...
For those who prefer to manage default options in a file.
If the file is not found, fzf will exit with an error.
We're not setting a default value for it because:
1. it's hard to find a default value that can be universally agreed upon
2. to avoid fzf having to check for the existence of the file even when it's not used
7 months ago
Junegunn Choi
99a7beba57
Fix missing bonus score on a delimiter character
...
Fix #3645
7 months ago
Junegunn Choi
ca747a2b54
Fix unit tests
7 months ago
Junegunn Choi
5e6788c679
Export FZF_* variables to 'reload' process as well
7 months ago
Junegunn Choi
7a72f1a253
Code cleanup: Remove unused argument
8 months ago
Junegunn Choi
208e556332
Replace "default find command" with built-in directory traversal
8 months ago
Junegunn Choi
3c0a630475
0.46.1
8 months ago
Junegunn Choi
413c66beba
Fix tests for tcell build
8 months ago
Junegunn Choi
1416e696b1
Avoid full redraw on 'preview' action when preview window exists
8 months ago
Junegunn Choi
d373cf89c7
Retain preview window on resize after 'preview' action
8 months ago
Junegunn Choi
76cf6559cc
junegunn/uniseg -> rivo/uniseg
...
https://github.com/rivo/uniseg/pull/47
8 months ago
Junegunn Choi
da752fc9a4
Fix Windows build
...
Fix #3598
8 months ago
Junegunn Choi
2a8b65e105
Fix highlighting of regions that are matched multiple times
...
Fix #3596
8 months ago
Junegunn Choi
7484292e63
Avoid deadlocks by adding a 2 second timeout to GET / endpoint
...
Because fzf processes HTTP GET requests in the main event loop,
accessing the endpoint from within execute/transform actions would
result in a deadlock and hang fzf indefinitely. This commit sets
a 2 second timeout to avoid the deadlock.
8 months ago
Junegunn Choi
687c2741b8
Add 'resize' event
...
Close #3570
8 months ago
Junegunn Choi
16f6473938
Change mattn/go-runewidth dependency to rivo/uniseg for accurate results
...
Related #3588 #3588 #3567
8 months ago
Junegunn Choi
8a2c41e183
Handle ambiguous emoji width
...
Fix #3588
8 months ago
Junegunn Choi
cdfaf761df
Expose state information via environment variables to child processes
...
Close #3582
9 months ago
Junegunn Choi
1a9ea6f738
Remove 'replace' directive for 'go install' compatibility
...
Close #3577
9 months ago
Junegunn Choi
250496c953
Add 'result' event that is triggered when the result list is ready
...
Close #3560
9 months ago
Junegunn Choi
e47dc758c9
Fix focus event not triggered in certain cases
9 months ago
Junegunn Choi
2024010119
0.45.0
9 months ago
Junegunn Choi
412040f77e
Enable preview if 'transform' action is bound to a key
9 months ago
Junegunn Choi
d210660ce8
Add actions: show-header and hide-header
9 months ago
Junegunn Choi
863a12562b
Trigger focus actions synchronously
9 months ago
Junegunn Choi
5d360180af
Add {fzf:prompt} placeholder expression
...
Close #3354
9 months ago
Junegunn Choi
519de7c833
Fix unexpected result of --tiebreak=end
...
See https://github.com/junegunn/fzf/issues/3255#issuecomment-1869580320
9 months ago
Junegunn Choi
97ccef1a04
{fzf:query} should trigger preview update
...
fzf --preview 'echo {fzf:query}'
fzf --preview 'echo {q}'
9 months ago
Junegunn Choi
cd114c6818
Change transform action to directly execute actions
...
To avoid filling up input channel for HTTP server
9 months ago
Junegunn Choi
1707b8cdba
Add 'transform' action to conditionally perform a series of actions
...
'transform' action runs an external command that prints a series of
actions to perform.
# Disallow selecting an empty line
echo -e "1. Hello\n2. Goodbye\n\n3. Exit" |
fzf --reverse --header 'Select one' \
--bind 'enter:transform:[[ -n {} ]] && echo accept || echo "change-header:Invalid selection"'
# Move cursor past the empty line
echo -e "1. Hello\n2. Goodbye\n\n3. Exit" |
fzf --reverse --header 'Select one' \
--bind 'enter:transform:[[ -n {} ]] && echo accept || echo "change-header:Invalid selection"' \
--bind 'focus:transform:[[ -n {} ]] && exit; [[ {fzf:action} =~ up$ ]] && echo up || echo down'
Close #3368
Close #2980
9 months ago
Junegunn Choi
41d4d70b98
Fix shell escaping for fish
...
Fix #3224
9 months ago
Junegunn Choi
0e999482cb
Fix handling of empty ANSI color sequence
...
Fix #3320
9 months ago
Junegunn Choi
d7b61ede07
Add support for negative --height
...
fzf --height=-1
Close #3487
9 months ago
Jan Verbeek
91387a741b
Terminate simple server success response with double CRLF ( #3542 )
...
The simple success case had only the status line plus a single CRLF,
and pedantic HTTP client implementations (`hyper`) stumbled over
this. A double CRLF makes it OK.
Fixes #3541 .
10 months ago
Junegunn Choi
c36a64be68
Add accept-or-print-query
...
Close #3528
10 months ago