summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
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-08Bump golang.org/x/sys from 0.13.0 to 0.14.0 (#3503)dependabot[bot]
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.13.0 to 0.14.0. - [Commits](https://github.com/golang/sys/compare/v0.13.0...v0.14.0) --- updated-dependencies: - dependency-name: golang.org/x/sys dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-08Fix a typoJunegunn Choi
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-07Fix a typo on CHANGELOGJunegunn Choi
2023-11-05Add --listen-unsafe=ADDR to allow remote process execution (#3498)Junegunn Choi
2023-11-05Deploying to master from @ ↵junegunn
junegunn/fzf@c5aa8729a1f073318f162ffc3f6ea2218a448e1f 🚀
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-11-02fzf-preview.sh: Fall back to `stty size` (#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-30fzf-preview.sh: Check the number of argumentsJunegunn Choi
2023-10-29Fix Sixel height calculation (#2544)Junegunn Choi
2023-10-29[completion] Handle all hostaliases in /etc/hosts (#3495)akdevservices
* Fix #3488 * Handle inline comments in hosts file
2023-10-29Deploying to master from @ ↵junegunn
junegunn/fzf@96e31e4b7862be73c7b0b4c87ea86b8b5f7fadb5 🚀
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-26Go 1.18 or above is requiredJunegunn Choi
Close #3492
2023-10-26Clear previous non-Sixel text before rendering Sixel image (#2544)Junegunn Choi
2023-10-26Fix kitty icat handlingJunegunn 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.
2023-10-26(Experimental) Improve Sixel graphics support (#2544)Junegunn Choi
Progress: * Sixel image can now be displayed with other text, and is scrollable * If an image can't be displayed entirely due to the scroll offset, fzf will render a wireframe to indicate that an image should be displayed * Renamed $FZF_PREVIEW_{WIDTH,HEIGHT} to $FZF_PREVIEW_PIXEL_{WIDTH,HEIGHT} for clarity * Added bin/fzf-preview.sh script to demonstrate how to display an image using Kitty or Sixel protocol An example: ls *.jpg | fzf --preview='seq $((FZF_PREVIEW_LINES*9/10)); fzf-preview.sh {}; seq 100' A known issue: * If you reduce the size of the preview window, the image may extend beyond the preview window
2023-10-23Simplify LightRenderer.Size()Junegunn Choi
2023-10-23Experimental Sixel support (#2544)Junegunn Choi
2023-10-22Deploying to master from @ ↵junegunn
junegunn/fzf@f5e4ee90e45db7d7833ea5f3927dc868b2002939 🚀
2023-10-21Fix bug where top section of the previous preview content appearingJunegunn Choi
when the preview window is re-enabled and the current preview process is taking more than 500ms and previewDelayed is triggered fzf --preview 'sleep 1; date; seq 1000' --bind space:toggle-preview
2023-10-20Fix scrollability of the preview window when preview offset is specifiedJunegunn Choi
This should not be scrollable fzf --preview 'seq $FZF_PREVIEW_LINES' --preview-window '~5'
2023-10-20Fix inconsistent preview window width with --borderJunegunn Choi
fzf --preview 'cat {}' --bind 'space:change-preview-window:up|right' --border
2023-10-19[bash] Preserve existing completion for sshJunegunn Choi
Fix #3484
2023-10-17Fix crash on OpenBSD with --listen (#3483)Laurent Cheylus
- src/protector/protector_openbsd.go: add inet permissions for pledge - fix #3481 Signed-off-by: Laurent Cheylus <foxy@free.fr>
2023-10-15Deploying to master from @ ↵junegunn
junegunn/fzf@d3311d9f43d024acb94a5f22b8f5675ee08d6f76 🚀
2023-10-150.43.00.43.0Junegunn Choi
2023-10-14[zsh] Fix 'emulate: unknown argument -o' error on old zsh (#3465)LangLangBart
Fix #2094
2023-10-13[fzf-tmux] Fix 'empty command' error on tmux 3.2Junegunn Choi
Fix #3474
2023-10-13[fish] exit as well when called from non-interactive shell (#3467)Christoph Anton Mitterer
Just like with the other shells, exit fish to, if called from a non-interactive shell. We cannot use `return`, as older versions of fish (namely < 3.4.0) did not support to use `return` in `.`-scripts (this was only added with fish commit 3359e5d2e9bcbf19d1652636c8e448a6889302ae). Unlike in POSIX, fish’s `exit` is however documented to no cause the calling shell to exit when executed in a sourced script (see: https://github.com/fish-shell/fish-shell/blob/0f70b2c0d310d97b5956b5360ad6cbc548baf72d/doc_src/cmds/exit.rst?plain=1#L20 ) Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name> Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2023-10-13[bash] Remove implicit bash-completion dependencyJunegunn Choi
2023-10-12[bash] statically define __fzf_list_hosts() with either methodChristoph Anton Mitterer
When bash-completion (and thus `_known_hosts_real()`) is / is not available this will typically not change during the lifetime of a shell. The only exception is if the user would unset `_known_hosts_real()`, but well, that would be his problem. So we can easily define `__fzf_list_hosts()` either using `_known_hosts_real()` or using the old code, and avoid checking every time whether `_known_hosts_real()` is defined. Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
2023-10-12[bash] try to use bash-completions’s _known_hosts_real() for getting hostnamesChristoph Anton Mitterer
If defined, use bash-completions’s `_known_hosts_real()`-function to create the list of hostnames. This obviously requires bash-completion to be sourced before fzf. If not defined, fall back to the previous code. Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
2023-10-12[shell] make `__fzf_list_hosts()` definable by the userChristoph Anton Mitterer
Just like it’s already done for `_fzf_compgen_path()` and `_fzf_compgen_dir()` allow a user to easily define his own version of `__fzf_list_hosts()`. Also add some documentation on the expected “interface” of such custom function. Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
2023-10-12[shell] move username prefixing code where neededChristoph Anton Mitterer
`__fzf_list_hosts()` seems like a function a user may want to override with some custom code. For that reason it should be kept as simple as possible, that is printing only hostnames, one per line, optionally in some sorting. The handling of adding a `username@` (which is then the same for each line), if any, would unnecessarily complicate that for people who want to override the function. Therefore this commit moves that to the places where it's actually used (as of now only `_fzf_complete_ssh()`). This also saves any such handling for `_fzf_host_completion()`, where this isn’t needed at all. Right now it comes at a cost, namely an extra invocation of `awk` in the `_fzf_complete_ssh()`-case. However, it should be easily possible to improve `__fzf_list_hosts()` to no longer need the final `awk` in the pipeline there. Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
2023-10-12[shell] don’t print error on non-existent SSH filesChristoph Anton Mitterer
Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
2023-10-12Fix offset-up and offset-down with --layout=reverse (#3456)Junegunn Choi
2023-10-11Bump golang.org/x/term from 0.12.0 to 0.13.0 (#3469)dependabot[bot]
Bumps [golang.org/x/term](https://github.com/golang/term) from 0.12.0 to 0.13.0. - [Commits](https://github.com/golang/term/compare/v0.12.0...v0.13.0) --- updated-dependencies: - dependency-name: golang.org/x/term dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>