6 ms·
>But the years of using screen have ingrained in my muscle memory to use ctrl-a I still don't understand how this happened to so many people. Ctrl+a is alread
by asdasf 13y ago
>But the years of using screen have ingrained in my muscle memory to use ctrl-a
I still don't understand how this happened to so many people. Ctrl+a is already taken, how did anyone ever use screen without immediately changing it to something that doesn't conflict with a frequently used shell shortcut?
- rsync 13y agoBecause ctrl-a is extremely simple, physically ... for one hand, etc. ctrl-b is fairly quick and easy if you use two hands (which is inferior to using one hand) and is quite a bit more difficult than ctrl-a when using one hand.
- asdasf 13y agoYou appear to have invented some other post to respond to, mine said nothing about ctrl+b.
- publicfig 13y agoCtrl+b is the standard key combo for tmux, which is why that was mentioned in the article in the first place.
- Sssnake 13y agoThat has nothing to do with the subject of the post in question though. He asked how people ever got accustomed to ctrl+a in the first place, since ctrl+a is already taken by your shell and every readline app, so 90% of people immediately remapped screen to use something else instead of ctrl+a. Tmux and ctrl+b don't enter into the discussion at all.
- thevdude 13y agoI ctrl+b with my left hand only. Pinky on left ctrl, index finger on b. I've never had any issues with it.
- daniel_solano 13y agoWell, some of use vi bindings, and Ctrl+a isn't as commonly used there.
- jzawodn 13y agoIndeed. I've been using Ctrl-\ as my Ctrl-a in screen (and occasionally tmux). Turns out that I never use that keystroke in real life.
- graywh 13y agoI use ctrl-_. In many terminals you can generate it with ctrl + 7 and/or ctrl + ?.
- c0un7d0wn 13y agoI've been using `
- w1ntermute 13y agoSame here. It's really hard to press if you don't swap Ctrl and Caps Lock though.
- c0un7d0wn 13y agoNo key chords, just left pinkie, why would it be so hard?
- w1ntermute 13y agoMy bad, I thought you meant Ctrl + `
- brianpgordon 13y agoFor me ` is taken by tilda: https://github.com/lanoxx/tilda https://github.com/lanoxx/tilda
- Nick_C 13y agoI use the Windows Menu key (the Windows key to the right of the spacebar) for that. Except I use yeahconsole, which is the same concept without the Gnome dependencies. Such a handy feature, isn't it. I would be lost without my drop-down console.
- jlgreco 13y agoThe only thing ctrl-A is used for by me besides screen (or rather, tmux after I remapped it), is incrementing a number in vim. Not really a big deal.
- fsckin 13y agoWith a vimscript [0], ctrl-a can increment dates, times, roman numerals, ordinals, etc. Pretty damn handy along with ctrl-x to decrement. [0] https://github.com/tpope/vim-speeddating https://github.com/tpope/vim-speeddating
- jlgreco 13y agoI actually do use that, but ctrl-a/ctrl-x is still something I rarely find myself using more than a few times a week. Still a great plugin though.
- montecarl 13y agoMost people I know use it to go to the beginning of a line in programs that use readline, which includes the shell as well as most programming language interpreters.
- jlgreco 13y agoYou can set readline's editing mode to vi so that anything that uses readline will then have vi-style bindings. Very useful, particularly when combined with rlwrap for those few programs that don't have readline support. Zsh doesn't use readline (it has it's own line editor) but it can be set to vi-style input too. (Actually, at least on my system, bash doesn't seem to be linked with libreadline.. I'm not sure if it is actually using readline or not)
- pyre 13y agoBash uses .inputrc which configures readline, so if it's not actually using libreadline, it's emulating it pretty well.
- saidajigumi 13y agoAgreed completely. I used Ctrl-] with screen and just kept that convention with tmux. Ctrl-a is a non-starter for Emacs users, and even neglecting that, there are many contexts where Ctrl-a/Ctrl-e navigation is enabled and useful.
- splawn 13y agoSerious question, what does tmux have to offer emacs users? I used and loved tmux back when vim was my editor, but after switching to emacs (thanks evil-mode), I stopped using it because emacs seems to cover all the bases on its own.
- creese 13y agoTry running emacsclient inside tmux. It's a good combination.
- donatj 13y agoControl-A / Control-E is by far the most uniform start of line/end of line keyboard shortcut in OS X, and moreover I can use it without taking my hands off home row.
- jasonlotito 13y agoYou map CTRL+A x2 to send CTRL+A to the shell, and it works.
- osivertsson 13y agoYes I do sort of this, only I use CTRL+Z instead, works sweet: # C-z as prefix key. C-z C-z will send C-z to application, C-z z cycles last window set-option -g prefix C-z unbind C-b bind-key C-z send-prefix bind-key z last-window
- dllthomas 13y agoBy default it's C-a a, which I like.
- nviennot 13y agoI use Alt. No double strokes: https://github.com/nviennot/tmux-config https://github.com/nviennot/tmux-config
- stormbrew 13y agoI use screen/tmux control combos far more frequently than I've used ctrl-a for beginning of line. That's what the home key is for (cue thousands of vim users telling me I shouldn't use any key that wasn't on a keyboard 40 years ago).
- wladh 13y agoFor the same reason (I'm using Ctrl+a in the shell), I'm using Ctrl+q as prefix for tmux. I'm quite surprised that I've never heard of anybody else using this combination.
- pyre 13y agoYou might have issues if you ever accidentally hit ctrl-s and need to use ctrl-q.
- docwhat 13y agoI use backtick. It's great not having to reach for a control or alt key to change window. It is a minor annoyance in markdown but in shell programming I use `$(...)` instead, since it can be hard to tell if a character is a backtick or a single quote.