Skip to content
Myr

[fzf-tmux] Adapt to tmux latest changes (#2379)

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

authored by solarizedalias · committed by GitHub · parent b82c169 · Browse files · 1 file+10 added−1 removed
This commit

State

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

Diff stats

1 file+10 added−1 removed

  • other:+10 added−1 removed

1 file+10 added−1 removed

modified:bin/fzf-tmux+10 added-1 removed
202 unmodified lines
203 mkfifo $fifo1204 cat <<< "\"$fzf\" $opts < $fifo1 > $fifo2; out=\$? $close; exit \$out" >> $argsf205 cat <&0 > $fifo1 &206 fi207208 # tmux dropped the support for `-K`, `-R` to popup command209 # TODO: We can remove this once tmux 3.2 is released210 if [[ ! "$(tmux popup --help 2>&1)" =~ '-R shell-command' ]]; then211 opt="${opt/-K/}"212 else213 opt="${opt} -R"214 fi215207 tmux popup -d "$PWD" "${tmux_args[@]}" $opt -R "bash $argsf" > /dev/null 2>&1216 tmux popup -d "$PWD" "${tmux_args[@]}" $opt "bash $argsf" > /dev/null 2>&1217 exit $?218fi219220mkfifo -m o+w $fifo3
13 unmodified lines