invalid or unknown command: `bind-key -t vi-copy ....` #754
It looks like my attempts to bind keys in my
Is this expected with current
The text was updated successfully, but these errors were encountered:
For anyone who finds this for posterity, the full changes should be as follows:
bind-key -t vi-copy v begin-selection
bind-key -T copy-mode-vi v send-keys -X begin-selection
From my own tmux.conf:
Also update setup.bash to use old config when system tmux version is before v2.6 tmux/tmux#754
Updated the bindings to the new format thanks to this comment: tmux/tmux#754 (comment) However, when I "yank" selected text, it leaves some weird characters, and still have to hit enter to get out of screen mode. So since I've gotten used to just hitting enter, I'm going to disable the bindings because I don't use them.
バージョン2.4でemacs-copyが無くなったり、コマンドの記述方法が変わったみたい。 ref. http://qiita.com/jyotti/items/5383d909f7307762fefa ref. tmux/tmux#754 (comment) 上記を参考にして修正した。 1. -t を -T に変更する 2. emacs-copy を copy-mode に変更する 3. コマンドの先頭に send-keys -X を足す
Just for future reference: the version detection trick based on
# @if "$TMUX_VERSION" >= 2.4 if-shell -b '[ "$(echo -e "$TMUX_VERSION\n"2.4 | sort -V | head -n1)" == "2.4" ]' \ 'bind -T copy-mode-vi "v" send-keys -X begin-selection; \ bind -T copy-mode-vi "y" send-keys -X copy-pipe-and-cancel "pbcopy"; \ '