Live data from Hacker News

Tmux 1.9 released

sourceforge.net

71–80 of 121 posts

Re: Tmux 1.9 released

#71
post #33

Earlier quoted context omitted.

That tmux broadcast trick sounds interesting. Are you able to provide some more details about it please?

Pull up the command line with "Ctrl-b :" Synchronize your panes: "setw synchronize-panes on" Now you can send the same commands to all panes in the current window. To turn synchronization off: "setw synchronize-panes off" My shell script takes in a list of tuples (hostname plus a special id that I need to paste for my tasks that's unique to each host), splits off a window pane for each hostname(tmux split-window -h),…

So, for those looking to make synching easy, you can add this to .tmux.conf

    bind S setw synchronize-panes
Without the on/off option, it acts as a toggle, making it a keystroke away.

Re: Tmux 1.9 released

#73

I remember using on the mac a branch of tmux with iTerm, where the gui understood tmux, giving native tabs and scrollback. I thought this was the greatest thing ever, but am now on Linux. Is this work still continuing does anyone know?

Isn't one of the advantages of tmux is reduce / avoid using the mouse? I know that scrolling is one of the first non-obvious changes that seem irritating at first. But after you get used to scrolling with the keyboard, I find myself missing this possibility on 'standard' terminal windows. Suddenly using the mouse to scroll feels really awkward and inefficient.

Really? I find a quick scroll of the mouse wheel easier. Also when scrolling back a few hundred (or thousand lines), grabbing the scroll bar and finding where I want to be I find much faster.

I don't mind people who don't want to use the mouse, that's fine, but personally I sometimes don't run tmux when I know it will upset my scrolling and cut+pasting.

Re: Tmux 1.9 released

#74
post #62

Here are my tmux bindings which I have been using daily for over a year. These are configured in iTerm in the Profiles->Keys section using Send Hex Codes. Cmd-shift-c: New window Cmd-shift-l: New pane to the right Cmd-shift-h: New pane to the left Cmd-shift-k: New pane above Cmd-shift-j: New pane below Cmd-l: Focus pane on right Cmd-h: Focus pane on left Cmd-k: Focus pane above Cmd-j: Focus pane below Cmd-1: Select f…

Here's a good blog post describing how to use the "Send Hex Codes" for integrating tmux and iTerm: http://tangledhelix.com/blog/2012/04/28/iterm2-keymaps-for-t...

Re: Tmux 1.9 released

#75
post #51
post #43

Earlier quoted context omitted.

This actually works with GNU Screen. Because of this, and because of the lack of workspace reordering in tmux, I seem to be actually about the only person who likes Screen more than tmux.

> because of the lack of workspace reordering in tmux What do you mean? Commands like tmux swap-window and tmux move window allow you do move the order of the windows / workspaces.

See this discussion:

http://superuser.com/questions/343572/how-do-i-reorder-tmux-...

It kind of works in the end, but it's arguably a bit more awkward to use than in screen.

Re: Tmux 1.9 released

#76

Does anyone know how to save/ retrieve sessions?

The one downside to tmux over screen is that tmux basically requires that all clients connecting to it have the same screen size, and by default it chooses the smallest one. So while you can connect to an existing session, the output might be ugly.

For this reason, I typically simply 'tmux detach;tmux attach"

Re: Tmux 1.9 released

#77
post #49
post #12

Earlier quoted context omitted.

The reason folks asked, "docker is a screen replacement?" is because one typical use case is using screen within an ssh session where you might get disconnected. screen holds onto the session so that you can ssh back in and continue from where you left off. $ ssh hostname $ screen # some time later, you get disconnected... $ ssh hostname $ screen -x # back to where you were before getting disconnected.

Don't forget mosh exists if you're commonly in situations where a normal ssh session is unreliable: http://mosh.mit.edu

mosh + tmux are simply amazing together. It has radically improved my life, where I keep persistent connections from my laptop to various remote machines.

Re: Tmux 1.9 released

#78
An absolute staple of my development setup, and one of those rare tools that always just seems to work. Thanks for all the work!

Sidebar: if you're a die-hard tmux user in Linux, and you do something like, say, open vim and then realize you haven't opened it in tmux, check out https://github.com/nelhage/reptyr - it lets you do things like ctrl-z to background vim, start tmux, then steal the vim process into your new tmux session. Pretty cool!

Re: Tmux 1.9 released

#80
post #75
post #51

Earlier quoted context omitted.

> because of the lack of workspace reordering in tmux What do you mean? Commands like tmux swap-window and tmux move window allow you do move the order of the windows / workspaces.

See this discussion: http://superuser.com/questions/343572/how-do-i-reorder-tmux-... It kind of works in the end, but it's arguably a bit more awkward to use than in screen.

Your right, I remember that discussion: I actually use pier solution, with the shellscript (I assigned them to Ctrl-A + Number)

I agree that it does not work 'out of the box', but once setup, it works quite nice :)

Post reply on HN