5 ms·
Does tmux allow redefining the key bindings? GNU screen allows for redefining (at least) its hotkey. If tmux allows the same maybe you could redo the bindings
by pwg 2y ago
Does tmux allow redefining the key bindings?
GNU screen allows for redefining (at least) its hotkey. If tmux allows the same maybe you could redo the bindings more to your liking?
- qup 2y agoyes, it does. I love tmux and hate the default hotkey
- dahart 2y agoYes you can define your own key bindings. The default is the same “prefix key” that ‘screen’ uses - Ctrl-b. Personally I like to use Ctrl-j because it’s easier to type and has fewer conflicts with shells and other things. Most of the key bindings that follow the prefix key seem natural to me, stuff like ‘c’ to create a new tab, ‘d’ to detach from tmux, ‘n’ to go to the next tab, etc., but all of that can be customized.
- orhmeh09 2y agoYou can even use a sequence to activate it -- my prefix is "typing ` twice within x ms" and it avoids conflict.
- jasomill 2y agoIn screen, I just use a single backtick, as I very rarely use it for any other application in a terminal session (I prefer "$()" in shell, invariably edit TeX and Lisp in GUI Emacs, and the only only other thing that comes immediately to mind is opening the developer console in mpv and various video games).
- zimpenfish 2y ago> The default is the same “prefix key” that ‘screen’ uses - Ctrl-b. Isn't the default command key ctrl-A for screen? Which is why I've always had to change it (to ctrl-O which is much more sensible) because I can't live without ctrl-A in the terminal etc.
- atsaloli 2y agoYep. You can run tmux inside screen. Ctrl-A for screen, Ctrl-B for tmux. (Of course, you can redefine the command key in both screen and tmux.)
- dahart 2y agoYou’re right! Thanks, yeah I can’t live without ctrl-a either, I use that all the time.
- dimatura 2y agoYeah. Also happens to clash with my preferred window manager's prefix key (ratpoison).
- anthk 2y agoYes, I use C-z instead of C-b
- dimatura 2y agoYes, I like to use a backtick (`). Pretty nice except when typing in markdown, where I need to type a double backtick for each backtick.