6 ms·
Looks like some of the shortcuts are really RSI prone, i.e. ctrl + b + & (where & is shift + 7). Are there any possibilities to have more wrist-friendly shortcu
by pw6hv 7y ago
Looks like some of the shortcuts are really RSI prone, i.e. ctrl + b + & (where & is shift + 7). Are there any possibilities to have more wrist-friendly shortcuts?
- iamnotacrook 7y agoYes choose what you want.
- fountainofage 7y agoNot sure if you know this, but you're not pressing 4 keys at once. The ctrl + b part is the prefix sequence to let tmux know you want to send it commands. The order of key presses would be: 1) press ctrl + b 2) release 3) press shift + 7 You may already know this, and the RSI concerns still stand (I'm not sure what all goes into RSI risks), but wanted to clarify if the concern is over pressing 4 keys at the same time that are all over the keyboard.
- tjoff 7y agoA very common change is to change the prefix to ctrl + a, like this in your tmux.conf: # remap prefix from 'C-b' to 'C-a unbind C-b set-option -g prefix C-a bind-key C-a send-prefix I've heard that he reason for ctrl + b is because screen uses ctrl + a, which just doesn't make any sense to me. You can nest both tmux and screen and to get to an inner layer you press (if ctrl + a has been mapped) ctrl + a + a - and now your command is sent to the inner tmux/screen. Defaults matter. It is not feasible to configure this on every machine you touch so one have to remember both the default one and the sane one...
- abcdef123xyz 7y agoThere is no consensus on the best prefix so there is no point in changing it after 10 years. Lots of people dislike C-a.
- tjoff 7y agoI can imagine, what is best will likely depend on preference. But at least the defaults should be sensible.
- abcdef123xyz 7y agoThere is no agreement on what is sensible and what is not, the defaults are no more or less sensible than any other suggestion.
- tjoff 7y agoOh, yes there are. C-b is terrible for your wrist, especially in conjunction with the following commands. Choosing C-a isn't as much about preference as it is about not-terrible ergonomics. Now people are right to prefer anything other than C-a or C-b but C-a is objectively a much saner default than C-b.
- abcdef123xyz 7y agoAbsolute nonsense, are you trying to press C-b with one hand?
- tjoff 7y agoYes. Left ctrl is in a better placement on many keyboards. Also being able to perform shortcuts with one hand is very handy.
- abcdef123xyz123 7y agoIf it hurts your wrist pressing it with one hand, perhaps you should use two...
- tjoff 7y agoOr choose a shortcut that works with either.
- JerwuQu 7y agoI think another reason is because some people use Ctrl+a in bash for jumping to the start of the line.
- tjoff 7y agoThanks, that is a good point!
- archarios 7y agouse a better keyboard :P