tony / tmux-config

:green_book: Example tmux configuration - screen + vim key-bindings, system stat, cpu load bar.

Home Page:http://tony.github.com/tmux-config/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.tmux.conf:94: usage: send-keys [-lRM] [-t target-pane] key ...

eugenweissbart opened this issue · comments

OS: Debian 9.0
tmux version: 2.3-4

The problem seems to be with these lines of code:
# Vi copypaste mode set-window-option -g mode-keys vi if-shell "test '\( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -ge 4 \)'" 'bind-key -Tcopy-mode-vi v send -X begin-selection; bind-key -Tcopy-mode-vi y send -X copy-selection-and-cancel' if-shell '\( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -lt 4\) -o #{$TMUX_VERSION_MAJOR} -le 1' 'bind-key -t vi-copy v begin-selection; bind-key -t vi-copy y copy-selection'

I'm using Ubuntu 17.04 and right after installation I've got the same problem.
I have "tmux 2.3".
Currently I have simply commented that line (#94) since it looks like it is supposed to be used with higher version anyway.

BTW, that line was added with commit 4e6c638 .
From what I see in comment "get copy-pasting working with tmux v2.4" I can just guess that it wasn't tested on tmux with version < 2.4.

commented

This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.

This bot is used to handle issues where the issue hasn't been discussed or
has gone out of date. If an issue isn't resolved and handled in a certain
period of time, it may be closed. If you would like your issue re-opened,
please create a fresh issue with the latest, up to date information and
mention this issue in it.

commented

Thank you for updating this issue. It is no longer marked as stale.