tmux-config icon indicating copy to clipboard operation
tmux-config copied to clipboard

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

Open eugenweissbart opened this issue 7 years ago • 4 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'

eugenweissbart avatar Jul 01 '17 08:07 eugenweissbart

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.

victor-yarema avatar Nov 03 '17 21:11 victor-yarema

BTW, that line was added with commit https://github.com/tony/tmux-config/commit/4e6c6381977e168d81ef14daea7f1bf83e50f51e . 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.

victor-yarema avatar Nov 03 '17 22:11 victor-yarema

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.

stale[bot] avatar Jan 02 '18 22:01 stale[bot]

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

stale[bot] avatar Oct 05 '21 14:10 stale[bot]