
Estoy ejecutando tmux dentro de urxvt. Me gustaría seleccionar y copiar texto con el botón izquierdo del mouse y pegarlo con el botón central. Soy muy de la vieja escuela.
conseguítmux-yankcasi funciona, pero es necesario presionar SHIFT+Ratón 1 Seleccione para hacer la selección, luego presione y
... Esto son muchas pulsaciones de teclas.
¿Alguien sabe cómo puedo hacer que este comportamiento simple funcione mejor?
Aquí algunas versiones:
; tmux -V
tmux 2.2
; urxvt256c-ml --version
urxvt: "version": unknown or malformed option.
rxvt-unicode (urxvt256c-ml) v9.21 - released: 2014-12-31
options: perl,xft,styles,combining,blink,iso14755,unicode3,encodings=eu+vn+jp+jp-ext+kr+zh+zh-ext,fade,transparent,tint,pixbuf,XIM,frills,selectionscrolling,wheel,slipwheel,smart-resize,cursorBlink,pointerBlank,scrollbars=plain+rxvt+NeXT+xterm
[…]
; awesome --version
awesome v3.5.9 (Mighty Ravendark)
• Build: Mar 7 2016 18:43:56 for x86_64 by gcc version 6.0.0 (mockbuild@)
• Compiled against Lua 5.3.2 (running with Lua 5.3)
• D-Bus support: ✔
Respuesta1
En caso de que algún otro pobrecito tenga problemas con esto, aquí está mi ~/.tmux.conf
archivo. yo sueloel administrador de complementos tmuxAsí que instálalo primero.
# ./tmux.conf
# Powerline…
run-shell "powerline-daemon -q"
source '~/.local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf'
# VI-mode…
setw -g mode-keys vi
# C-b is not acceptable -- Vim uses it
set-option -g prefix C-a
bind-key C-a last-window
# Set windows modes styles
set -g mode-style "fg=black,bg=colour69"
# Renumber windows
set -g renumber-windows on
# Automaitcally rename.
setw -g automatic-rename
# Allows for faster key repetition
set -s escape-time 0
# Scroll History
set -g history-limit 30000
# Mouse
set -g mouse on # ← This stops the default correct behaviour…
# List of plugins
set -g @plugin 'tmux-plugins/tpm' # ← The tmux plugin manager.
set -g @plugin 'nhdaly/tmux-scroll-copy-mode' # ← sane scrolling.
set -g @plugin 'tmux-plugins/tmux-yank' # ← Yanking.
set -g @shell_mode 'vi' # tmux-yank option.
set -g @yank_selection 'primary' # tmux-yank option.
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
# EOF
Entonces, puedes usar el mouse para seleccionar el texto que desees. si golpeasy
antesAl soltar el botón izquierdo del mouse, la selección se copia en el búfer principal, que puede pegar con el clic central del mouse.