Hacker News new | ask | show | jobs
by Cthulhu_ 4836 days ago
I want to like tmux, I really do, but my main gripes are scrolling in panes with the scroll wheel and selecting / copy/pasting text. iTerm (osx) or Terminator (linux) handle that much better, although I admit they can't really be compared technology-wise.

Alternatively, I never figured out how to select / copy text just as fast in tmux / vim / etc as with the mouse.

4 comments

Add these to your ~/.tmux.conf

    setw -g mode-mouse on
    setw -g mouse-select-window on
    setw -g mouse-select-pane on
    setw -g mouse-resize-pane on
Then you can scroll in panes, but also select like normal by holding alt/option.
tmux has mouse mode to enable scrolling/clicking.

This appears to be a helpful article: http://tangledhelix.com/blog/2012/07/16/tmux-and-mouse-mode/

Use iTerm2. One of the new features of tmux is

> * Control mode, which is a way for a client to send tmux commands. > Currently more useful to users of iterm2.

With this, if you connect to tmux via iTerm2, you can get it to pop up a window with tabs for each shell in the tmux session. History via the mouse wheel is native, changing tabs is native, new tab is native. Essentially you don't need to know any of the tmux commands at all unless you connect from a terminal program that doesn't know the protocol.

I also hated tmux mouse wheel scrolling.

But tmux 1.8 mouse wheel scrolling seems much improved over tmux 1.6 - to the point that it looks quite usable.