
En tmux
, generalmente quiero seleccionar líneas completas para copiar.
¿Cómo puedo seleccionar líneas de texto, como vi
el comando ' V
?
Respuesta1
Aquí está la solución, en modo copia.
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.
Respuesta2
El tmux
comando es select-line
.
Aquí hay un buen conjunto de asignaciones que uso (uso copy-mode
si no las uso 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 ]