summaryrefslogtreecommitdiffstats
path: root/bin
AgeCommit message (Collapse)Author
2024-02-21fzf-tmux: Workaround for tmux 3.4 bugJunegunn Choi
Close #3635 https://github.com/tmux/tmux/pull/3840
2024-01-17Kitty image support improvementsJunegunn Choi
* 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
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-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-02fzf-preview.sh: Fall back to `stty size` (#2544)Junegunn Choi
2023-10-30fzf-preview.sh: Check the number of argumentsJunegunn 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-13[fzf-tmux] Fix 'empty command' error on tmux 3.2Junegunn Choi
Fix #3474
2023-08-24[fzf-tmux] Turn off remain-on-exit only on fzf-tmux pane (#3410)Chandan Mangu
* fix: turn off remain-on-exit only on fzf-tmux pane Using `fzf-tmux` overwrites `remain-on-exit` for all panes in a window, if it is only set globally or at a higher scope than window. set-option -wg remain-on-exit on set-option -s remain-on-exit on This makes other panes in that window close immediately on exit after using `fzf-tmux`, even though I expect them to remain open. Since TMux 3.0, `remain-on-exit` is a pane option that can be set via `set-option -p`. This will limit the option's scope to just the `fzf-tmux` pane, thus allowing us to close it immediately without overriding `remain-on-exit` on other panes in the window. Co-authored-by: Junegunn Choi <junegunn.c@gmail.com> Link: https://github.com/tmux/tmux/blob/11e69f6025f5783fe17d43247de1c3f659a19b69/CHANGES#L753-L760 Link: https://github.com/tmux/tmux/releases/tag/3.0 Related: https://github.com/junegunn/fzf/issues/3397 * fix: turn off synchronize-panes only on fzf-tmux pane Similar reason to 482fd2b (fix: turn off remain-on-exit only on fzf-tmux pane, 2023-08-24). Limit scope on which option is set to bare minimum. Have confirmed this will not feed input back to other panes which are set to be synchronized. However, note that this will not stop `fzf-tmux` from being launched by two synchronized panes in parallel. Link: https://github.com/junegunn/fzf/issues/3397#issuecomment-1689295351 --------- Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2023-08-03[fzf-tmux] Pass $RUNEWIDTH_EASTASIANJunegunn Choi
Close #3385
2023-05-31[fzf-tmux] Pass $BAT_THEMEJunegunn Choi
This may anger some purists, but bat is widely used as the previewer so I think it's worth it.
2023-04-11[fzf-tmux] Try awk before bcJunegunn Choi
2023-04-06[fzf-tmux] Use awk if bc is not foundJunegunn Choi
Fix #3235
2023-04-02[fzf-tmux] Disallow popup mode on tmux 3.1 or belowJunegunn Choi
Close #3198
2023-02-13[fzf-tmux] Fix version checkJunegunn Choi
The output of `tmux -V` starts with "tmux ".
2023-02-13[fzf-tmux] Do not set --margin 0,1 on tmux 3.3 or aboveJunegunn Choi
Close #3162
2022-11-18Fix typos in the source code (#3048)Zhizhen He
2022-08-08Allow specifying fzf options in $FZF_TMUX_OPTS without '--'Junegunn Choi
2022-08-07[fzf-tmux] Use fzf border instead of tmux popup border (#2908)Yang Tian
Co-authored-by: Yang Tian <yang.tian@getcruise.com> Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2022-08-06[fzf-tmux] Remove code for tmux 3.2 beta compatibilityJunegunn Choi
2021-08-15use consistent style for bash [[ ... ]]a1346054
2021-03-08[fzf-tmux] Adapt to tmux latest changes (#2379)solarizedalias
2021-01-01[fzf-tmux] Disable CTRL-ZJunegunn Choi
2020-10-09Simplify fzf-tmux scriptJunegunn Choi
# Should properly escape arguments FZF_DEFAULT_OPTS='--prompt "\$a`b\"c"' fzf-tmux --header $'$a\nb"c`d'
2020-05-23[fzf-tmux] Fix zoomed pane handling in popup mode (#2054)karasu
When called with popup options, do not move to temp window.
2020-04-07[fzf-tmux] Allow positional flagsJunegunn Choi
Since we don't know in advance which flags tmux will support, simply allow a single uppercase character ([A-Z]) for now. fzf-tmux -xR -yS fzf-tmux -x R -y S Fix #1956
2020-04-03[fzf-tmux] Fall back to plain fzf when split failedJunegunn Choi
2020-04-03[fzf-tmux] Use $PWD instead of #{pane_current_path}Junegunn Choi
Related: https://github.com/tmux/tmux/issues/1282
2020-04-03[fzf-tmux] Set default horizontal marginJunegunn Choi
2020-04-03[fzf-tmux] Add option to start fzf in tmux popup windowJunegunn Choi
Requires latest tmux built from source (e.g. brew install tmux --HEAD) Examples: # 50%/50% width and height on the center of the screen fzf-tmux -p # 80%/80% fzf-tmux -p80% # 80%/40% fzf-tmux -p80%,40% # Separate -w and -h fzf-tmux -w80% -h40% # 80%/40% at position (0, 0) fzf-tmux -w80% -h40% -x0 -y0 You can configure key bindings and fuzzy completion to open in tmux popup window like so: FZF_TMUX_OPTS='-p 80%'
2018-05-04[fzf-tmux] Avoid unnecessary recovery of window optionsJunegunn Choi
fzf-tmux temporarily turns off remain-on-exit and synchronize-panes options. We don't have to try to restore the values of the options if they were already turned off when fzf-tmux was started.
2018-05-04[fzf-tmux] Restore tmux window options (#1272)Heinrich Kruger
Restore the original values of 'remain-on-exit' and 'synchronize-panes' options when exiting 'fzf-tmux'.
2017-09-28[fzf-tmux] Executes fzf from fzf-tmux with a process name (#1056)Ricardo González
2017-09-01[fzf-tmux] Remove cat commandJunegunn Choi
Close #1039
2017-09-01[fzf-tmux] Add pane_height/pane_width fallback (#1037)Mike Hearn
2017-08-26[fzf-tmux] Execute trap with bash instead of the default shellJunegunn Choi
Close #1007
2017-06-04[fzf-tmux] Fix cleanup of temporary filesJunegunn Choi
Close #935
2017-04-03[fzf-tmux] Close with exit code 130 when tmux pane is killedKouki Higashikawa
Fix #796
2017-04-01[fzf-tmux] Fix issue with zoomed pane on fish (#891)五所和哉
2017-02-08[fzf-tmux] Fix race condition when using -l/-u on zoomed panesJunegunn Choi
Using a dummy command that works as the barrier.
2017-01-08Add --height optionJunegunn Choi
2016-10-13[fzf-tmux] Fix bash conditionJunegunn Choi
Fix #702
2016-10-12[fzf-tmux/vim/nvim] Do not split small windowJunegunn Choi
Close #699
2016-09-06Make fzf target correct session in groupBryan Head
Fixes #643 Doesn't break #648
2016-08-31Revert "Unset TMUX before splitting window" (#648)Junegunn Choi
This reverts commit 4d4447779fe4c3ff05c2e6809c1b0c5d754d9772.
2016-08-28Unset TMUX before splitting windowBryan Head
Avoids confusing grouped sessions. Fixes #643
2016-07-10[fzf-tmux] Add --version and --help flagsJunegunn Choi