Junegunn Choi
b6bfd4a5cb
Fix typo in comment
2024-03-27 17:36:08 +09:00
Junegunn Choi
008fb9d258
Fix reload and reload-sync behaviors
...
https://github.com/junegunn/fzf/discussions/3696#discussioncomment-8915593
2024-03-27 17:25:56 +09:00
Junegunn Choi
db6db49ed6
Increase the buffer size for POST requests
...
Close #3685
2024-03-21 19:18:43 +09:00
Junegunn Choi
05453881c3
Set a 2-second timeout for POST requests
...
Close #3685
2024-03-21 19:18:38 +09:00
Junegunn Choi
5e47ab9431
README: Mention that you can source individual script files
2024-03-21 12:35:52 +09:00
Junegunn Choi
d579e335b5
0.48.1
2024-03-17 16:35:35 +09:00
Junegunn Choi
7e344ceb85
Update README
2024-03-17 16:21:07 +09:00
Junegunn Choi
0145b82ea0
Update README
2024-03-17 16:20:14 +09:00
Junegunn Choi
b4efe7aab7
Show how to disable a key binding
2024-03-17 16:18:19 +09:00
Junegunn Choi
9ffe951f6d
Update Makefile target dependencies
...
Because shell integration scripts are now embedded in the binary
2024-03-17 16:11:21 +09:00
Junegunn Choi
c7ee071efa
Fix panic caused by invalid cursor index
...
Fix #3681
2024-03-17 15:55:16 +09:00
Junegunn Choi
0740ef7ceb
[bash] Fix default completion of unset, unalias, etc
...
Fix #3679
2024-03-17 15:38:11 +09:00
Junegunn Choi
8977c9257a
Limit the maximum number of focus events to process at once
2024-03-14 11:18:47 +09:00
Junegunn Choi
091b7eacba
0.48.0
2024-03-14 00:02:53 +09:00
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
2024-03-13 23:59:34 +09:00
Junegunn Choi
d282a1649d
Add walker options and replace 'find' with the built-in walker ( #3649 )
2024-03-13 20:56:31 +09:00
Junegunn Choi
6ce8d49d1b
[bash] Fix regression in dynamic completion
...
Fix #3674
2024-03-13 08:31:31 +09:00
Junegunn Choi
0494f20d62
Revert "Fix CHANGELOG"
...
This reverts commit 73aff476dd .
2024-03-10 23:24:59 +09:00
Junegunn Choi
73aff476dd
Fix CHANGELOG
2024-03-10 21:52:39 +09:00
Junegunn Choi
98ee5e651a
0.47.0
2024-03-10 21:43:41 +09:00
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
2024-03-09 14:14:42 +09:00
Junegunn Choi
fa0aa5510d
Kill preview process when hiding the preview window
...
via toggle-preview, hide-preview, or change-preview-window
2024-03-08 22:01:45 +09:00
Junegunn Choi
eec557b6aa
Fix invalid memory access when the preview window becomes hidden
2024-03-08 17:57:09 +09:00
Junegunn Choi
686f9288fc
Allow iTerm2 image data that ends with 'ESC \' ( #3646 )
2024-03-02 18:24:54 +09:00
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
2024-02-29 09:49:33 +09:00
Junegunn Choi
99a7beba57
Fix missing bonus score on a delimiter character
...
Fix #3645
2024-02-22 23:19:11 +09:00
Junegunn Choi
edee2b753c
fzf-tmux: Workaround for tmux 3.4 bug
...
Close #3635
https://github.com/tmux/tmux/pull/3840
2024-02-21 14:39:03 +09:00
Junegunn Choi
ca747a2b54
Fix unit tests
2024-02-19 12:39:04 +09:00
Junegunn Choi
17da165cfe
CHANGELOG: charlievieth/fastwalk
2024-02-19 12:36:14 +09:00
Junegunn Choi
5e6788c679
Export FZF_* variables to 'reload' process as well
2024-02-19 12:36:14 +09:00
Junegunn Choi
7a72f1a253
Code cleanup: Remove unused argument
2024-02-15 17:11:30 +09:00
Junegunn Choi
208e556332
Replace "default find command" with built-in directory traversal
2024-02-15 16:55:43 +09:00
Junegunn Choi
c65d11bfb5
Update README: warp.dev
2024-02-15 14:30:44 +09:00
Junegunn Choi
3b5b52d89a
Update README: warp.dev
2024-02-13 08:45:33 +09:00
Junegunn Choi
3c0a630475
0.46.1
2024-02-01 18:13:00 +09:00
Junegunn Choi
2a1e5a9729
More test fixes for tcell on GitHub Actions
2024-02-01 17:39:18 +09:00
Junegunn Choi
413c66beba
Fix tests for tcell build
2024-02-01 16:25:53 +09:00
Junegunn Choi
1416e696b1
Avoid full redraw on 'preview' action when preview window exists
2024-02-01 15:50:48 +09:00
Junegunn Choi
d373cf89c7
Retain preview window on resize after 'preview' action
2024-02-01 15:46:42 +09:00
Junegunn Choi
76cf6559cc
junegunn/uniseg -> rivo/uniseg
...
https://github.com/rivo/uniseg/pull/47
2024-01-27 22:18:43 +09:00
Junegunn Choi
a34e8dcdc9
Downgrade Go version to keep support for old Windows ( #3601 )
...
Go 1.21 dropped support for older versions of Windows.
* https://tip.golang.org/doc/go1.21#windows
But there is no absolute reason for fzf to use Go 1.21, so we downgrade
the dependency.
2024-01-26 13:07:35 +09:00
Junegunn Choi
da752fc9a4
Fix Windows build
...
Fix #3598
2024-01-24 15:59:54 +09:00
Junegunn Choi
beb2de2dd9
0.46.0
2024-01-23 23:47:24 +09:00
Junegunn Choi
2a8b65e105
Fix highlighting of regions that are matched multiple times
...
Fix #3596
2024-01-23 12:19:32 +09:00
Junegunn Choi
3a4c3d3e58
Add link to fzf Theme Playground by @vitormv
...
https://vitormv.github.io/fzf-themes/
2024-01-21 23:12:57 +09:00
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.
2024-01-21 23:04:37 +09:00
Junegunn Choi
687c2741b8
Add 'resize' event
...
Close #3570
2024-01-21 15:30:59 +09:00
Junegunn Choi
16f6473938
Change mattn/go-runewidth dependency to rivo/uniseg for accurate results
...
Related #3588 #3588 #3567
2024-01-21 02:54:41 +09:00
Junegunn Choi
66546208b2
Update goreleaser flags
2024-01-20 14:36:52 +09:00
Junegunn Choi
532274045e
Update to the latest go
2024-01-20 14:35:00 +09:00
Junegunn Choi
e90bb7169c
[zsh] Handle '*' suffix in history line numbers
...
Fix #3591
2024-01-20 13:43:15 +09:00
Junegunn Choi
8a2c41e183
Handle ambiguous emoji width
...
Fix #3588
2024-01-19 16:41:50 +09:00
Junegunn Choi
59fb65293a
README.md: More information on image support
2024-01-17 13:21:00 +09:00
Junegunn Choi
e7718b92b7
Kitty image support improvements
...
* Use `--unicode-placeholder` for consistent result in and out of tmux
* Use updated version of junegunn/go-runewidth that handles diacritics
used in Kitty Unicode placeholder
Close #3567
2024-01-17 00:17:22 +09:00
Junegunn Choi
cdfaf761df
Expose state information via environment variables to child processes
...
Close #3582
2024-01-16 14:18:31 +09:00
Junegunn Choi
1a9ea6f738
Remove 'replace' directive for 'go install' compatibility
...
Close #3577
2024-01-14 17:12:24 +09:00
Junegunn Choi
250496c953
Add 'result' event that is triggered when the result list is ready
...
Close #3560
2024-01-07 17:46:21 +09:00
Junegunn Choi
e47dc758c9
Fix focus event not triggered in certain cases
2024-01-07 15:43:17 +09:00
Junegunn Choi
b92a843c5f
Use Ubuntu 22 to match GitHub Actions environment
2024-01-07 15:10:06 +09:00
Junegunn Choi
91bea9c5b3
Use forked version of go-runewidth
...
Fix #3558
go get github.com/junegunn/go-runewidth@fzf
2024-01-07 15:09:46 +09:00
Junegunn Choi
2024010119
0.45.0
2024-01-01 15:38:35 +09:00
Junegunn Choi
412040f77e
Enable preview if 'transform' action is bound to a key
2023-12-31 20:56:33 +09:00
Junegunn Choi
d210660ce8
Add actions: show-header and hide-header
2023-12-31 16:01:00 +09:00
Junegunn Choi
863a12562b
Trigger focus actions synchronously
2023-12-31 15:54:37 +09:00
Junegunn Choi
8d20f3d5c4
ADVANCED.md: Add toggling example with transform and {fzf:prompt}
...
Courtesy of @LangLangBart
2023-12-29 12:27:12 +09:00
Junegunn Choi
5d360180af
Add {fzf:prompt} placeholder expression
...
Close #3354
2023-12-28 17:10:06 +09:00
Junegunn Choi
f0fbed6007
Fix RuboCop error
2023-12-27 01:33:34 +09:00
Junegunn Choi
519de7c833
Fix unexpected result of --tiebreak=end
...
See https://github.com/junegunn/fzf/issues/3255#issuecomment-1869580320
2023-12-26 23:42:14 +09:00
Junegunn Choi
97ccef1a04
{fzf:query} should trigger preview update
...
fzf --preview 'echo {fzf:query}'
fzf --preview 'echo {q}'
2023-12-26 16:51:41 +09:00
Junegunn Choi
c4df0dd06e
Add TRANSFORM ACTIONS section to man page
2023-12-26 12:21:06 +09:00
Junegunn Choi
cd114c6818
Change transform action to directly execute actions
...
To avoid filling up input channel for HTTP server
2023-12-26 10:15:53 +09:00
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
2023-12-26 00:14:05 +09:00
Junegunn Choi
41d4d70b98
Fix shell escaping for fish
...
Fix #3224
2023-12-25 17:35:44 +09:00
Junegunn Choi
0e999482cb
Fix handling of empty ANSI color sequence
...
Fix #3320
2023-12-25 17:05:54 +09:00
Junegunn Choi
d7b61ede07
Add support for negative --height
...
fzf --height=-1
Close #3487
2023-12-21 18:42:23 +09:00
Junegunn Choi
e8b34cb00d
Clarification on accept-or-print-query vs. become
2023-12-14 23:13:52 +09:00
Junegunn Choi
50f092551b
Lint: RuboCop
2023-12-10 16:04:30 +09:00
Junegunn Choi
c36a64be68
Add accept-or-print-query
...
Close #3528
2023-12-10 15:59:45 +09:00
Junegunn Choi
cd6788a2bb
Increase buffer size of event channel to avoid freeze on zero event
...
Fix #3516
2023-11-30 17:23:46 +09:00
Junegunn Choi
d7d2ac3951
0.44.1
2023-11-17 19:17:00 +09:00
Junegunn Choi
29e67d307a
Fix crash when preview window is hidden on focus event
2023-11-17 19:13:37 +09:00
Junegunn Choi
7320b7df62
0.44.0
2023-11-12 22:08:08 +09:00
Junegunn Choi
84bb350b14
Reset horizontal offset of the prompt on 'beginning-of-line'
...
https://github.com/junegunn/fzf/issues/3498#issuecomment-1806651174
2023-11-12 21:41:34 +09:00
Junegunn Choi
38e3694d1c
Revert "Sixel and Kitty image support on Windows binary ( #2544 )"
...
This reverts commit 68db9cb499 .
2023-11-10 13:16:11 +09:00
Junegunn Choi
f5f0b9ecaa
Fix a typo
2023-11-08 11:18:36 +09:00
Junegunn Choi
230fc49ae2
(Experimental) Add support for iTerm2 inline image protocol
...
Close #1102
fzf --preview 'imgcat -W $FZF_PREVIEW_COLUMNS -H $FZF_PREVIEW_LINES {}'
Notes:
* There is no good way to determine the height of the rendered image,
so we assume that the image takes the full height of the preview
window. So the image cannot be displayed with the other text.
* fzf-preview.sh script was updated to use `imgcat` if it's available
but `chafa` is not.
* iTerm2 also supports Sixel, so adding support for this protocol is not
quite necessary but it renders animated GIFs much better (e.g. looping).
2023-11-07 11:51:21 +09:00
Junegunn Choi
250d507bdf
Fix a typo on CHANGELOG
2023-11-07 10:50:08 +09:00
Junegunn Choi
a818653174
Add --listen-unsafe=ADDR to allow remote process execution ( #3498 )
2023-11-05 10:53:46 +09:00
Junegunn Choi
c5aa8729a1
Fix failing test case
2023-11-04 16:27:24 +09:00
Junegunn Choi
3f78d76da1
Allow accepting remote connections
...
Close #3498
# FZF_API_KEY is required for a non-localhost listen address
FZF_API_KEY=xxx fzf --listen 0.0.0.0:6266
2023-11-04 16:19:16 +09:00
Junegunn Choi
70c19ccf16
Fix CTRL-Z handling: Signal SIGSTOP to PGID
...
Fix #3501
2023-11-04 13:46:29 +09:00
Junegunn Choi
68db9cb499
Sixel and Kitty image support on Windows binary ( #2544 )
2023-11-03 00:09:02 +09:00
Junegunn Choi
d0466fa777
Fix regression where tcell renderer not clearing the preview window
2023-11-02 21:00:07 +09:00
Junegunn Choi
21ab64e962
sixel: Export $FZF_PREVIEW_TOP to the preview command ( #2544 )
...
So that it can determine if it should subtract 1 from $FZF_PREVIEW_LINES
to avoid scrolling issue of Sixel image that touches the bottom of the
screen.
2023-11-02 01:35:36 +09:00
Junegunn Choi
a0145cebf2
sixel: Better handling of animated GIFs ( #2544 )
2023-11-02 00:15:42 +09:00
Junegunn Choi
69176fc5f4
fzf-preview.sh: Fall back to stty size ( #2544 )
2023-11-02 00:15:39 +09:00
Junegunn Choi
278dce9ba6
Restore scroll after rendering full-height Sixel image ( #2544 )
...
When a Sixel image touches the bottom of the screen, the whole screen
scrolls up one line to make room for the cursor. Add an ANSI escape
code to compensate for the movement. Unfortunately, the movement of the
screen is sometimes noticeable.
fzf --preview='fzf-preview.sh {}' --preview-window border-left
2023-10-31 23:38:01 +09:00
Junegunn Choi
1cfa3ee4c7
fzf-preview.sh: Check the number of arguments
2023-10-30 00:05:54 +09:00
Junegunn Choi
9a95cd5794
Fix Sixel height calculation ( #2544 )
2023-10-29 23:34:33 +09:00
Junegunn Choi
96e31e4b78
Fix Sixel issues ( #2544 )
...
* Fix regression where previous image is not properly cleared
* Change the way fzf calculates the number of required lines to display
an image (ceil -> floor) to fix the issue where an image is always
rendered as a wireframe.
2023-10-27 14:36:14 +09:00