
Estou executando o tmux dentro do urxvt. Gostaria de selecionar e copiar o texto usando o botão esquerdo do mouse e colá-lo usando o botão do meio do mouse - sou muito antiquado.
eu conseguitmux-yankquase funcionando, mas preciso apertar SHIFT + Mouse 1 Selecione fazendo a seleção e depois apertar y
… São muitos pressionamentos de tecla.
Alguém sabe como posso fazer esse comportamento simples funcionar melhor?
Aqui estão algumas versões:
; 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: ✔
Responder1
Caso alguma outra pobre alma tenha dificuldades com isso, aqui está meu ~/.tmux.conf
arquivo. eu usoo gerenciador de plugins tmuxentão instale isso primeiro.
# ./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
Assim, você pode usar o mouse para selecionar o texto que desejar. Se você acertary
antesliberando o botão esquerdo do mouse, a seleção é copiada para o buffer primário que você pode colar com o clique do meio do mouse.