diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2016-07-10 15:21:28 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2016-07-10 15:21:28 +0900 |
| commit | 3a4e053af777f3e499bba2a3ee4e0185c1534a5c (patch) | |
| tree | d3fb257a1a003626203efbf6977de8f47a4e9fb1 /shell | |
| parent | 049bc9ec685b823929a66678623da5dbad349df4 (diff) | |
| download | fzf-3a4e053af777f3e499bba2a3ee4e0185c1534a5c.tar.gz | |
[bash] Fall back to send-keys if named paste buffer is not supported
Related: #616
Diffstat (limited to 'shell')
| -rw-r--r-- | shell/key-bindings.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/key-bindings.bash b/shell/key-bindings.bash index 9aa2918c..c251a0fc 100644 --- a/shell/key-bindings.bash +++ b/shell/key-bindings.bash @@ -26,7 +26,7 @@ __fzf_select_tmux__() { height="-l $height" fi - tmux split-window $height "cd $(printf %q "$PWD"); FZF_DEFAULT_OPTS=$(printf %q "$FZF_DEFAULT_OPTS") PATH=$(printf %q "$PATH") FZF_CTRL_T_COMMAND=$(printf %q "$FZF_CTRL_T_COMMAND") FZF_CTRL_T_OPTS=$(printf %q "$FZF_CTRL_T_OPTS") bash -c 'source \"${BASH_SOURCE[0]}\"; tmux setb -b \"fzf\" \"\$(__fzf_select__)\"; tmux pasteb -b \"fzf\" -t $TMUX_PANE; tmux deleteb -b \"fzf\"'" + tmux split-window $height "cd $(printf %q "$PWD"); FZF_DEFAULT_OPTS=$(printf %q "$FZF_DEFAULT_OPTS") PATH=$(printf %q "$PATH") FZF_CTRL_T_COMMAND=$(printf %q "$FZF_CTRL_T_COMMAND") FZF_CTRL_T_OPTS=$(printf %q "$FZF_CTRL_T_OPTS") bash -c 'source \"${BASH_SOURCE[0]}\"; RESULT=\"\$(__fzf_select__)\"; tmux setb -b fzf \"\$RESULT\" \\; pasteb -b fzf -t $TMUX_PANE \\; deleteb -b fzf || tmux send-keys -t $TMUX_PANE \"\$RESULT\"'" } fzf-file-widget() { |
