summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2024-02-010.46.10.46.1Junegunn Choi
2024-02-01Fix tests for tcell buildJunegunn Choi
2024-02-01Avoid full redraw on 'preview' action when preview window existsJunegunn Choi
2024-02-01Retain preview window on resize after 'preview' actionJunegunn Choi
2024-01-27junegunn/uniseg -> rivo/unisegJunegunn Choi
https://github.com/rivo/uniseg/pull/47
2024-01-24Fix Windows buildJunegunn Choi
Fix #3598
2024-01-23Fix highlighting of regions that are matched multiple timesJunegunn Choi
Fix #3596
2024-01-21Avoid deadlocks by adding a 2 second timeout to GET / endpointJunegunn Choi
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-21Add 'resize' eventJunegunn Choi
Close #3570
2024-01-21Change mattn/go-runewidth dependency to rivo/uniseg for accurate resultsJunegunn Choi
Related #3588 #3588 #3567
2024-01-19Handle ambiguous emoji widthJunegunn Choi
Fix #3588
2024-01-16Expose state information via environment variables to child processesJunegunn Choi
Close #3582
2024-01-14Remove 'replace' directive for 'go install' compatibilityJunegunn Choi
Close #3577
2024-01-07Add 'result' event that is triggered when the result list is readyJunegunn Choi
Close #3560
2024-01-07Fix focus event not triggered in certain casesJunegunn Choi
2024-01-010.45.00.45.0Junegunn Choi
2023-12-31Enable preview if 'transform' action is bound to a keyJunegunn Choi
2023-12-31Add actions: show-header and hide-headerJunegunn Choi
2023-12-31Trigger focus actions synchronouslyJunegunn Choi
2023-12-28Add {fzf:prompt} placeholder expressionJunegunn Choi
Close #3354
2023-12-26Fix unexpected result of --tiebreak=endJunegunn Choi
See https://github.com/junegunn/fzf/issues/3255#issuecomment-1869580320
2023-12-26{fzf:query} should trigger preview updateJunegunn Choi
fzf --preview 'echo {fzf:query}' fzf --preview 'echo {q}'
2023-12-26Change transform action to directly execute actionsJunegunn Choi
To avoid filling up input channel for HTTP server
2023-12-26Add 'transform' action to conditionally perform a series of actionsJunegunn Choi
'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-25Fix shell escaping for fishJunegunn Choi
Fix #3224
2023-12-25Fix handling of empty ANSI color sequenceJunegunn Choi
Fix #3320
2023-12-21Add support for negative --heightJunegunn Choi
fzf --height=-1 Close #3487
2023-12-16Terminate simple server success response with double CRLF (#3542)Jan Verbeek
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.
2023-12-10Add accept-or-print-queryJunegunn Choi
Close #3528
2023-11-30Increase buffer size of event channel to avoid freeze on zero eventJunegunn Choi
Fix #3516
2023-11-21Allow files creation in /tmp on OpenBSD (#3512)Laurent Cheylus
- src/protector/protector_openbsd.go: add tmppath for pledge permissions - fix junegunn/fzf#3511 Signed-off-by: Laurent Cheylus <foxy@free.fr>
2023-11-17Fix crash when preview window is hidden on focus eventJunegunn Choi
2023-11-120.44.00.44.0Junegunn Choi
2023-11-12Fix Home, End on rxvt-unicode (#3507)Tomáš Janoušek
2023-11-12Reset horizontal offset of the prompt on 'beginning-of-line'Junegunn Choi
https://github.com/junegunn/fzf/issues/3498#issuecomment-1806651174
2023-11-10Revert "Sixel and Kitty image support on Windows binary (#2544)"Junegunn Choi
This reverts commit 68db9cb499ab32190edae6c285942c5fb7cf39ed.
2023-11-07(Experimental) Add support for iTerm2 inline image protocolJunegunn Choi
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-05Add --listen-unsafe=ADDR to allow remote process execution (#3498)Junegunn Choi
2023-11-04Fix failing test caseJunegunn Choi
2023-11-04Allow accepting remote connectionsJunegunn Choi
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-04Fix CTRL-Z handling: Signal SIGSTOP to PGIDJunegunn Choi
Fix #3501
2023-11-03Sixel and Kitty image support on Windows binary (#2544)Junegunn Choi
2023-11-02Fix regression where tcell renderer not clearing the preview windowJunegunn Choi
2023-11-02sixel: Export $FZF_PREVIEW_TOP to the preview command (#2544)Junegunn Choi
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-02sixel: Better handling of animated GIFs (#2544)Junegunn Choi
2023-10-31Restore scroll after rendering full-height Sixel image (#2544)Junegunn Choi
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-29Fix Sixel height calculation (#2544)Junegunn Choi
2023-10-27Fix Sixel issues (#2544)Junegunn Choi
* 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-26Clear previous non-Sixel text before rendering Sixel image (#2544)Junegunn Choi
2023-10-26Remove $FZF_PREVIEW_PIXEL_{WIDTH,HEIGHT} (#2544)Junegunn Choi
They are not neccessary because we can use a program such as chafa that can resize images by the terminal columns and lines.