Live data from Hacker News

tmux 1.8 Released

tmux.sourceforge.net

51–60 of 162 posts

Re: tmux 1.8 Released

#51
Incompatible Changes ====================

* layout redo/undo has been removed.

Normal Changes ==============

* Add halfpage up/down bindings to copy mode.

* Session choosing fixed to work with unattached sessions.

* New window options window-status-last-{attr,bg,fg} to denote the last window which was active.

* Scrolling in copy-mode now scrolls the region without moving the mouse cursor.

* run-shell learnt '-t' to specify the pane to use when displaying output.

* Support for middle-click pasting.

* choose-tree learns '-u' to start uncollapsed.

* select-window learnt '-T' to toggle to the last window if it's already current.

* New session option 'assume-paste-time' for pasting text versus key-binding actions.

* choose-* commands now work outside of an attached client.

* Aliases are now shown for list-commands command.

* Status learns about formats.

* Free-form options can be set with set-option if prepended with an '@' sign.

* capture-pane learnt '-p' to send to stdout, and '-e' for capturing escape sequences, and '-a' to capture the alternate screen, and '-P' to dump pending output.

* Many new formats added (client_session, client_last_session, etc.)

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

* resize-pane learnt '-x' and '-y' for absolute pane sizing.

* Config file loading now reports errors from all files which are loaded via the 'source-file' command.

* 'copy-pipe' mode command to copy selection and pipe the selection to a command.

* Panes can now emit focus notifications for certain applications which use those.

* run-shell and if-shell now accept formats.

* resize-pane learnt '-Z' for zooming a pane temporarily.

* new-session learnt '-A' to make it behave like attach-session.

* set-option learnt '-o' to prevent setting an option which is already set.

* capture-pane and show-options learns '-q' to silence errors.

* New command 'wait-for' which blocks a client until woken up again.

* Resizing panes will now reflow the text inside them.

* Lots and lots of bug fixes, fixing memory-leaks, etc.

* Various manpage improvements.

Re: tmux 1.8 Released

#52
post #42

I realise you can rebind them, but both screen and tmux do themselves a disservice by choosing binding keys which overlap with prominent keys in emacs and for users who use emacs mode in their shell. First impressions count. If you want to configure tmux to use just a backtick as the escape, create ~/.tmux.conf unbind C-b set -g prefix ` bind-key ` send-prefix When you need to type a backtick just press it twice. For…

    bind C-a last-window
Switch the C-a for whatever your bind-key is.

Re: tmux 1.8 Released

#53
post #52
post #42

I realise you can rebind them, but both screen and tmux do themselves a disservice by choosing binding keys which overlap with prominent keys in emacs and for users who use emacs mode in their shell. First impressions count. If you want to configure tmux to use just a backtick as the escape, create ~/.tmux.conf unbind C-b set -g prefix ` bind-key ` send-prefix When you need to type a backtick just press it twice. For…

bind C-a last-window Switch the C-a for whatever your bind-key is.

thank you sir! I am now entirely migrated to tmux. :)

Re: tmux 1.8 Released

#54
post #50

Earlier quoted context omitted.

> Query: in screen I can switch between two buffers by doing ctrl+a, ctrl+a. This doesn't work in tmux. How do I configure this to work in tmux? "Ctrl-b n" for next-window?

That's not quite what I'm after. I guess it's hard for non-screen people to know what I'm talking about from my vague description above :) Here's a scenario to show what I mean: you're in buffer 5. You switch to buffer 2. Now if you do ctrl+a, ctrl+a, you leap back to buffer 5. And if you do it again, you go back to buffer 2. This is great when you're editing code in one session and running it in the other.

I use that screen behaviour for panes:

bind C-a last-pane

but last-window exists too.

Re: tmux 1.8 Released

#55
post #42

I realise you can rebind them, but both screen and tmux do themselves a disservice by choosing binding keys which overlap with prominent keys in emacs and for users who use emacs mode in their shell. First impressions count. If you want to configure tmux to use just a backtick as the escape, create ~/.tmux.conf unbind C-b set -g prefix ` bind-key ` send-prefix When you need to type a backtick just press it twice. For…

Per your query: ctrl+a ctrl+a is how I switch between two windows (tmux calls them windows, they're basically tabs). If you want to switch between two panes (divisions inside a window, the equivalent of splitting the screen in a regular editor or visible buffers in vim/emacs), use ctrl-a o. I also have these bindings in my tmux conf for moving between panes painlessly:

    # use hjkl for moving
    bind h select-pane -L
    bind j select-pane -D
    bind k select-pane -U
    bind l select-pane -R

Re: tmux 1.8 Released

#56
Two things I missed from screen last I tried tmux: an equivalent of 'screen -xRR' and an orthogonality between terminals and windows so that distinct terminals connected to one session can display different windows. Especially the latter of these is integral to my workflow.

Re: tmux 1.8 Released

#57
post #4

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

I use byobu http://byobu.co/

It binds the function keys which makes life so much easier. F2 starts new window, F3 and F4 rotate back and forwards. It also has a pretty neat status line.

Re: tmux 1.8 Released

#58
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 remov…

Thanks. Yes, I meant panes.

I also did the thing to get rid of the tmux prefix for pane switching. But since I don't use the function keys, I mapped keys F1 through F9 to various tmux functions. F1 = next pane, F2 = prev pane. One less key to press. :)

Re: tmux 1.8 Released

#60
post #54
post #50

Earlier quoted context omitted.

That's not quite what I'm after. I guess it's hard for non-screen people to know what I'm talking about from my vague description above :) Here's a scenario to show what I mean: you're in buffer 5. You switch to buffer 2. Now if you do ctrl+a, ctrl+a, you leap back to buffer 5. And if you do it again, you go back to buffer 2. This is great when you're editing code in one session and running it in the other.

I use that screen behaviour for panes: bind C-a last-pane but last-window exists too.

awesome. I hadn't thought of that but it's much better. thank you.

I've now switched last-window to bind C-s last-window, because it's fast to tap out.

Post reply on HN