4 ms·
I know everyone remaps their prefix to ctrl-a - how do you then jump to the start of a line? Edit: Thanks for the solutions. Will have a play. Like the sound o
by aidos 13y ago
I know everyone remaps their prefix to ctrl-a - how do you then jump to the start of a line?
Edit: Thanks for the solutions. Will have a play. Like the sound of using ctrl-\
- NotOscarWilde 13y agoI guess you know this, but just for some context: ctrl-a is the default prefix for GNU Screen which was the unopposed leader in terminal management for a long time, so most people are just used to it. As for the ctrl-a shortcut, I admit I use screen/tmux for mail, jabber and text editing/programming mostly, so I do not spend that much time in the shell where that shortcut would be handy. I just didn't use that shortcut until now.
- fphilipe 13y agoYou map a to send the prefix: bind-key a send-prefix Now when you type <prefix-a> ctrl-a gets sent.
- aidos 13y agoOh, amazing. Believe it or not that one silly thing has put me off investing in learning tmux.
- jh3 13y agoA while ago I changed my prefix to ctrl-q because of ctrl-a interfering with me being able to move to the beginning of a line. Not sure if I would go back to ctrl-a now, but this is nice to know.
- DigitalJack 13y agoI've remapped my prefix to ctrl-\. I also have my capslock remapped as control. So two pinkys to hit my prefix.
- mhw 13y agoI don't - I use ctrl-s instead. Similar position so just as easy to hit, but it seems to clash with fewer important terminal keystrokes as it has been historically used for flow control in the terminal driver. Here's the relevant bit for .tmuxrc: unbind C-b set -g prefix C-s bind s send-prefix bind C-s if '! tmux last-pane' last-window
- Lapsa 13y agoI'm using ctrl+\ as a leader key for vim and alt+\ for tmux. feels comfy
- graywh 13y agoI use ctrl-_ for the tmux prefix, which is often available from ctrl-7.
- chetanahuja 13y agoI've used screen for donkey's years now and since I'm also an emacs user, the C-a as the prefix (default for screen) was out of the question. C-] was my solution and has worked dandy so far without ever clashing with any keyboard shortcut from any application.