tmux、urxvt、コピー - 貼り付けの問題…

tmux、urxvt、コピー - 貼り付けの問題…

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 今後マウスの左ボタンを離すと、選択内容がメインバッファにコピーされ、マウスの中央ボタンをクリックして貼り付けることができます。

おすすめ記事