Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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!

share|improve this question

2 Answers 2

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.

share|improve this answer
    
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
    
@Newtonx, what if you're sshed into another system and using tmux there? –  Alex R Mar 3 at 22:05

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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