3 ms·
I do. It's closer to the prefix/leader I was used to when using screen (<C-a>), and I find it easier to type.
by jbnicolai 11y ago
I do. It's closer to the prefix/leader I was used to when using screen (<C-a>), and I find it easier to type.
- JoshTriplett 11y agoWhy not use C-a?
- GrandTheftR 11y agoI assume ctrl-s is easier to press than ctrl-a, I have trouble with ctrl-a on Mac with reconfigured CapsLock, and my bind key is ctrl-space.
- Lio 11y agoThat's why I remap the right alt key on mac (laptops) to ctrl. Having left right balanced ctrl keys is much more important for my workflow.
- St-Clock 11y agoI also use C-s on my local machine because: 1. I can still use C-a with readline (go to first character) 2. If I ssh and then use screen, I can use C-a to navigate my remote screen and C-s to navigate my local tmux. 3. C-s is closer to C-a then other letters on my keyboard.
- e3b0c 11y agoC-a still works with readline. You just need to C-a first to 'escape' tmux and then C-a again. Actually just hold ctrl and hit 'a' twice. C-s will suspend the terminal on some platforms. (Which can be resumed by C-q.)
- jbnicolai 11y agoFor a while I ran a setup where I did all of my work in a local tmux session, but part of this work involved SSH-ing and attaching to a screen session. When using both, especially nested, I found it beneficial to have a different leader for each. I also use <^-a> to go to the start of the line, so I'd miss that.
- eddiezane 11y agoI use `bind a send-prefix` and do a `<^-a> a` to make up for the bind :)
- maw 11y agoBecause C-a already does something useful.
- aclissold 11y agoAhhhh. Maybe I'll switch from <C-a> to <C-s>, I still miss using <C-a> in Vim to increment integers!
- jbnicolai 11y agoExactly! And don't forget about <C-a> to move your cursor to the start-of-line in your terminal.