The default tmux mouse mode seems to select words by character -- this is a little too granular for me; if I click [or double-click] in the middle of a word, I'd like it to start selecting the entire word.

Are there any ways to accomplish this? Thanks much!


Hold Shift and double-click the text. This sends the mouse input directly to the terminal (xterm, terminal, etc) and bypasses tmux's mouse mode.

Note: I tested this in xterm and gnome-terminal. For other terminals you may need to hold a different modifier key.

  • Sorry, that uses the terminal's selection, not tmux's selection buffer. Nice trick though, thanks -- it seems with kde's konsole you can use that to click on a link with tmux's mouse mode on. – gatoatigrado Sep 30 '13 at 17:59
  • Glad it helps :) Why does the distinction matter to you? I use tmux set-option -g set-clipboard on so tmux's selection buffer is always copied to the system clipboard, then I can mostly forget that tmux has its own selection buffer. – Newtonx Oct 4 '13 at 0:33
  • 1
    @Newtonx, what if you're sshed into another system and using tmux there? – Alex R Mar 3 '14 at 22:05
  • 1
    Yeah, and in my case, I often have vertically-split panes, so copying without tmux means you copy some mishmesh garbage from both panes. – gatoatigrado Apr 7 '15 at 16:32

not without patching your tmux source code, sorry. hopefully such a feature can be added to tmux in the future


Looks like xtmux could do that, but that won't apply over ssh. The iTerm equivalent of Shift is Alt. I haven't found a pure tmux solution, but you might consider vim mode copy/paste: set-window-option -g mode-keys vi bind-key -t vi-copy 'v' begin-selection bind-key -t vi-copy 'y' copy-selection bind-key -t vi-copy 'Escape' copy-selection With that and set -g mode-mouse on, you can click and hold at the beginning of your selection, hit w and other vim commands until you have what you want selected, and then release.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.