mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-12-23 03:19:01 +00:00
[fzf-tmux] Fix issues on tmux 1.8
This commit is contained in:
parent
c0652adf4c
commit
df32c05833
1
.github/ISSUE_TEMPLATE.md
vendored
1
.github/ISSUE_TEMPLATE.md
vendored
@ -1,6 +1,7 @@
|
|||||||
<!-- Check all that apply [x] -->
|
<!-- Check all that apply [x] -->
|
||||||
- Category
|
- Category
|
||||||
- [ ] fzf binary
|
- [ ] fzf binary
|
||||||
|
- [ ] fzf-tmux script
|
||||||
- [ ] Key bindings
|
- [ ] Key bindings
|
||||||
- [ ] Completion
|
- [ ] Completion
|
||||||
- [ ] Vim
|
- [ ] Vim
|
||||||
|
14
bin/fzf-tmux
14
bin/fzf-tmux
@ -140,15 +140,17 @@ done
|
|||||||
|
|
||||||
if [ -n "$term" -o -t 0 ]; then
|
if [ -n "$term" -o -t 0 ]; then
|
||||||
cat <<< "$fzf $opts > $fifo2; echo \$? > $fifo3 $close" > $argsf
|
cat <<< "$fzf $opts > $fifo2; echo \$? > $fifo3 $close" > $argsf
|
||||||
tmux set-window-option synchronize-panes off 2> /dev/null \;\
|
tmux set-window-option synchronize-panes off \;\
|
||||||
set-window-option remain-on-exit off 2> /dev/null \;\
|
set-window-option remain-on-exit off \;\
|
||||||
split-window $opt "cd $(printf %q "$PWD");$envs bash $argsf" $swap
|
split-window $opt "cd $(printf %q "$PWD");$envs bash $argsf" $swap \
|
||||||
|
2>&1 > /dev/null
|
||||||
else
|
else
|
||||||
mkfifo $fifo1
|
mkfifo $fifo1
|
||||||
cat <<< "$fzf $opts < $fifo1 > $fifo2; echo \$? > $fifo3 $close" > $argsf
|
cat <<< "$fzf $opts < $fifo1 > $fifo2; echo \$? > $fifo3 $close" > $argsf
|
||||||
tmux set-window-option synchronize-panes off 2> /dev/null \;\
|
tmux set-window-option synchronize-panes off \;\
|
||||||
set-window-option remain-on-exit off 2> /dev/null \;\
|
set-window-option remain-on-exit off \;\
|
||||||
split-window $opt "$envs bash $argsf" $swap
|
split-window $opt "$envs bash $argsf" $swap \
|
||||||
|
2>&1 > /dev/null
|
||||||
cat <&0 > $fifo1 &
|
cat <&0 > $fifo1 &
|
||||||
fi
|
fi
|
||||||
cat $fifo2
|
cat $fifo2
|
||||||
|
Loading…
Reference in New Issue
Block a user