3 ms·
> 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
by stevekemp 14y ago
> 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?
- cturner 14y agoThat'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.
- dwb 14y agoI use that screen behaviour for panes: bind C-a last-pane but last-window exists too.
- cturner 14y agoawesome. 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.
- pavel_lishin 14y agoIs there a way to set it up to do this if you hit (escape-key) (current buffer index)? That's the way weechat works, and I keep expecting it to work in tmux as well :/
- mpyne 14y agoI think the idea is to be able to pound on whatever the defined escape key is to be able to toggle buffers, not that's he unable to find a command to switch to the next window.