Skip to content
Myr

[fzf-tmux] Use fzf border instead of tmux popup border (#2908)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Yang Tian · committed by GitHub · parent 6a61306 · Browse files · 2 files+15 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: Yang Tian <yang.tian@getcruise.com>
  • Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>

Diff stats

2 files+15 added−1 removed

  • other:+15 added−1 removed

2 files+15 added−1 removed

modified:bin/fzf-tmux+8 added-1 removed
179 unmodified lines
180trap 'cleanup 1' SIGUSR1181trap 'cleanup' EXIT182183envs="export TERM=$TERM "184if [[ "$opt" =~ "-E" ]]; then184[[ "$opt" =~ "-E" ]] && FZF_DEFAULT_OPTS="--margin 0,1 $FZF_DEFAULT_OPTS"185 FZF_DEFAULT_OPTS="--margin 0,1 $FZF_DEFAULT_OPTS"186 tmux_verson=$(tmux -V)187 if [[ ! $tmux_verson =~ 3\.2 ]]; then188 FZF_DEFAULT_OPTS="--border $FZF_DEFAULT_OPTS"189 opt="-B $opt"190 fi191fi192[[ -n "$FZF_DEFAULT_OPTS" ]] && envs="$envs FZF_DEFAULT_OPTS=$(printf %q "$FZF_DEFAULT_OPTS")"193[[ -n "$FZF_DEFAULT_COMMAND" ]] && envs="$envs FZF_DEFAULT_COMMAND=$(printf %q "$FZF_DEFAULT_COMMAND")"194echo "$envs;" > "$argsf"195
37 unmodified lines
modified:CHANGELOG.md+7 added
2 unmodified lines
340.32.15------6- Fixed incorrect ordering of `--tiebreak=chunk`7- fzf-tmux will show fzf border instead of tmux popup border (requires tmux 3.3)8 ```sh9 fzf-tmux -p70%10 fzf-tmux -p70% --color=border:bright-red11 fzf-tmux -p100%,60% --color=border:bright-yellow --border=horizontal12 fzf-tmux -p70%,100% --color=border:bright-green --border=vertical13 ```14150.32.016------17- Updated the scoring algorithm
1269 unmodified lines