
私は urxvt 内で tmux を実行しています。マウスの左ボタンを使用してテキストを選択してコピーし、マウスの中ボタンを使用して貼り付けたいのですが、私は非常に古いタイプの人間です。
私はtmuxヤンクほぼ動作しますが、選択を行うには SHIFT + マウス 1 選択を押してから、y
… を押す必要があります。これは、キーを押す回数が多いことになります。
この単純な動作をより良く動作させる方法を誰か知っていますか?
いくつかのバージョンを以下に示します。
; 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: ✔
答え1
他にも困っている人がいたら、ここに私の~/.tmux.conf
ファイルがあります。tmuxプラグインマネージャーまずそれをインストールしてください。
# ./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
マウスを使って好きなテキストを選択することができます。y
前にマウスの左ボタンを放すと、選択範囲がプライマリ バッファーにコピーされ、マウスの中クリックで貼り付けることができます。