Live data from Hacker News

tmux 1.8 Released

tmux.sourceforge.net

31–40 of 162 posts

Re: tmux 1.8 Released

#31

Tmux + Vim = Pure Awesome. I use vim-slime[1] to send strings to other panes in tmux. I never type anything directly into a REPL. I just send my code from Vim to it. It's amazing with lisp or python. (A little less amazing with php, as the php repl IS AWEFUL) [1] https://github.com/jpalardy/vim-slime

Ruby users may also be interested in adding pry to that setup: http://www.alanmacdougall.com/blog/2012/03/27/using-vim-slim... (disclosure: my own blog)

Re: tmux 1.8 Released

#32

Earlier quoted context omitted.

A simple `tar -xvf` can replace the separate `gunzip` and `tar` processes.

Do you mean `tar -xzvf`?

Yes, formally. You don't have to specify -z in GNU tar today, you can just say -x and it'll add -z or -j for you -- it figures out on the fly if the archive's been compressed and how. Very convenient.

Re: tmux 1.8 Released

#33

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.

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/

Re: tmux 1.8 Released

#34
If you like tmux, also check out teamocil (https://github.com/remiprev/teamocil) to really enhance your use. It enables you to define tmux sessions via YAML, which is great for programmatically setting up a complex dev session. Mine, for example, fires up six panes in my preferred layout, and starts up a particular part of our project in each pane.

Re: tmux 1.8 Released

#37
post #4

Anybody know if it's possible to move between terminal windows (panes in tmux lingo) "clockwise" and "anti-clockwise"?

AFAIK there are tmux 'windows' which are like tabs and 'panes' which are vertical and horizontal splits in 1 tmux window

but assuming you mean 'panes', it seems you can:

Ctrl-b o

to move around the current window's panes clockwise. Although I prefer inputing a given direction like the other replier suggested with arrow keys.

For me moving between windows and panes is something that I do a lot. So much so that I removed the need to use the 'tmux prefix' to do so. In my ~/.tmux.conf I have for window and pane switching:

# set pane switching with {U, E, N, I} for up, down, left, right and respectively without needing prefix

bind -n M-N select-pane -L

bind -n M-I select-pane -R

bind -n M-U select-pane -U

bind -n M-E select-pane -D

# set window switching without needing prefix

bind -n M-a select-window -t :1

bind -n M-r select-window -t :2

bind -n M-s select-window -t :3

bind -n M-t select-window -t :4

bind -n M-d select-window -t :5

bind -n M-h select-window -t :6

You can just replace the keybindings I chose like M-a (alt-a) to something that works for you. If you want to keep using a prefix (incase you are worried the keybindings will clash with other program/system bindings), remove the '-n' flag. Hope that helps.

If it doesn't here is a tutorial I found from a google search: http://blog.hawkhost.com/2010/06/28/tmux-the-terminal-multip...

and IMO a really good book on Tmux if you decide to dive in more: http://www.amazon.com/tmux-Productive-Mouse-Free-Development...

Re: tmux 1.8 Released

#39
post #34

If you like tmux, also check out teamocil ( https://github.com/remiprev/teamocil ) to really enhance your use. It enables you to define tmux sessions via YAML, which is great for programmatically setting up a complex dev session. Mine, for example, fires up six panes in my preferred layout, and starts up a particular part of our project in each pane.

Ah, that looks excellent for more complicated setups. I've been using the slightly simpler tmuxinator.

https://github.com/aziz/tmuxinator

Re: tmux 1.8 Released

#40
Anyone know if it is possible to do single combination keybindings? Currently all of the keybindings are things like 'Ctrl+W L', whereas I'd like to do things like 'Command+L'?
Post reply on HN