4 ms·
I'd add <prefix> w to that list, which shows an interactive list of opened windows which is very friendly to newcomers, does away with the base-index setting th
by lloeki 9y ago
I'd add <prefix> w to that list, which shows an interactive list of opened windows which is very friendly to newcomers, does away with the base-index setting that's needed to fix cognitive dissonance of tab order vs key order, and circumvents the inconvenience of having to use shift to reach for numbers on non-US layouts.
> Ctrl a (a little faster to type, doesn’t conflict with vim
... but conflicts with beginning-of-line emacs-style bindings, widely in use in readline/libedit/zsh.
- baby 9y agoExactly. I use C-z on mine
- smhenderson 9y agoDoesn't that mess with job control in your shell?
- bch 9y agoI think I could live w having to “quote” ^Z to suspend a job, but worry I’m going to have ^Z baked-into my muscle memory and end up accidentally suspending jobs on non-tmux sessions.
- winkywooster 9y agoBut that's not a bad thing.. fg it back. ^z is my preference for tmux too.
- smhenderson 9y agoInteresting. After I posted my comment I saw elsewhere that you can simply hit ^z twice to suspend so I guess that's not a big deal after all.
- baby 9y agoYeah I just hit ^z twice to suspend now, and if I do it by mistake (which really rarely happens) I can fg.
- deleted 9y ago[deleted]
- supergreg 9y agoI had remapped <prefix> w to cycle to the next pane so I had no idea of the window list. Thanks for that.
- sevensor 9y ago> I'd add I'd add stuff too, but I think we need to resist the temptation. The article succeeds in presenting the absolute bare minimum you need to get started. In fact, I think the author chose his features well but used too many words to present them.
- spinningarrow 9y agoC-a seems to be quite a common prefix, but as you said, it conflicts with the beginning-of-line command. I’ve been quite happy with C-s so far; if it conflicts with something, I have no idea.
- lloeki 9y ago^S is XOFF of software control flow fame. You shouldn't need to worry about it though.
- mi100hael 9y agoIt's a common prefix because it's what gnu-screen uses by default, which is what everyone was using for 20 years before tmux came along.
- barrkel 9y agoC-s searches forward where C-r searches backwards, if you're used to using C-r to retrieve an earlier command via incremental search. If not otherwise configured with stty, it's frequently set up for control flow along with C-q. If you find your terminal freezes after typing C-s, C-q will unfreeze it. Disable with: stty -ixon start undef stop undef
- spinningarrow 9y agoThanks, I didn’t know that! I use the fish shell, which does history searching differently but this is useful for those few times when I’m in bash.
- platinumrad 9y agoCtrl-j is excellent for me as a vim user. It's default behavior is to just move the cursor one line down which you can already do by pressing... j (although Ctrl-j can be used in insert mode if I recall correctly).
- tym0 9y agoMapped mine to Ctrl-Space, no conflicts.
- graywh 9y agoI use ^_ (0x1F) which can be "typed" with Ctrl + 7 and Ctrl + / in most terminals.
- orev 9y agoAs a long-time ‘screen’ user, the Ctrl-A issue is almost completely a non-issue. One can easily send a Ctrl-A to the underlying shell using Ctrl-A A. I assume ‘tmux’ has something similar. It’s also pretty rare to need the “beginning of the line” movement in a shell, when compared to the number of times one needs to control the multiplexor. Ctrl-A is also very close at hand, and the vast majority of people are using PC keyboards which also have a Home key that work just as well for movement.