tmux: Zeilenweise Textauswahl im vi-Kopiermodus

tmux: Zeilenweise Textauswahl im vi-Kopiermodus

In tmuxmöchte ich im Allgemeinen ganze Zeilen zum Kopieren auswählen.

Wie kann ich Text zeilenweise auswählen, wie vibeim VBefehl?

Antwort1

Hier ist die Lösung im Kopiermodus

1. move to the line you want to select
2. pres 0, then the cursor will move to the fist position of this line, 
same as vim
3. enter whitespace (start copy)
4. type $. Then it will highlight the whole line.

Antwort2

Der tmuxBefehl lautet select-line.

Hier ist ein netter Satz von Zuordnungen, die ich verwende (verwenden, copy-modewenn nicht verwendet copy-mode-vi):

# Selection / copy / paste
bind-key -T copy-mode-vi v   send -X begin-selection  # default is <space>
bind-key -T copy-mode-vi V   send -X select-line
bind-key -T copy-mode-vi C-v send -X rectangle-toggle  # default is C-v, or R in copy-mode (non-vi)
bind-key -T copy-mode-vi y   send -X copy-pipe-and-cancel 'xclip -selection clipboard -in'
bind p paste-buffer  # default ]

verwandte Informationen