Hacker News new | ask | show | jobs
by stevekemp 4836 days 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?

2 comments

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.

Is 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 :/
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.

I 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.