5 ms·
I wonder how many people are using the default b key binding in tmux
by trallnag 2y ago
I wonder how many people are using the default b key binding in tmux
- entropie 2y agoNo emacs user. I use p in screen and tmux as prefix key. I usually prefer tmux.
- sorrythanks 2y agoYour use of p surprises me if you don't use b for emacs reasons! How do you go up a line!?
- entropie 2y agoIam pretty sure that was a recommendation in the emacswiki to use ^P instead of ^A as prefix key (that must be 15+ years ago). I think I didnt invest to much energy to think about an alternative. I almost never use ^P in my terminal emulator, but I use ^A all the time. I usually never do heavy editing in a tmux window. Rarely I use emacs in a terminal window these days. I use tramp to remote connect and edit comfortably in my X session.
- setopt 2y agoI dropped the prefix entirely: https://github.com/jabirali/tmux-tilish https://github.com/jabirali/tmux-tilish
- 331c8c71 2y agoI do.
- vindex10 2y agoI usually use ctrl+a locally but ctrl+b remotely, so they don't clash when nested.
- lanstin 2y agoI use back-tick `. For nested, it becomes `` or ````. For twice nested and I'm writing a shell script with ` instead of $( .. ) It's ```````` (I'm an emacs user, I need all the control characters :)
- e-max 2y agoI also use backticks, and in 99.9% of cases it works like a charm. But then one day you paste a large file, and the gates of hell open. Tmux randomly opens windows, kills sessions, and launches nuclear missiles while processing all the backticks in the text.
- setopt 2y agoI think this can be avoided if you enable “bracketed paste” in your terminal.
- lanstin 2y agoYeah, that's true. Tho for large pastes, I generally only do that in a locally running GUI emacs. For remote, I'll assemble the file and then scp. Even without tmux, this can be an issue - a long time ago I was using the X windows "drag the selection" middle mouse button action and accidentally let go of the button while the cursor was over an emacs text window - I sent my first email to some big listserv I subscribed to consisting of weird fragments from the log file I was trying to paste.a
- eikenberry 2y agoI use the default ctrl-b for tmux and changed screen to use the same. I like it because on my keyboard, a Kinesis Advantage, the (left) ctrl and b keys are right next to each other which makes them an easy combo.
- susam 2y ago> I wonder how many people are using the default b key binding in tmux I do not use C-b as the tmux prefix key because it interferes with my muscle memory for Emacs where C-b invokes backward-char (i.e., move the cursor back by character(s)). So I use C-j instead as the prefix key. While C-j also happens to be a useful Emacs key-binding, I use it quite rarely in Emacs. As a result, I do not have strong muscle memory for C-j and I can use it as the prefix key in tmux quite comfortably. Here is my tiny .tmux.conf: https://github.com/susam/dotfiles/blob/main/.tmux.conf https://github.com/susam/dotfiles/blob/main/.tmux.conf
- __david__ 2y agoI use emacs so that meant practically every prefix character would annoy me at some point. I ended up using C-\ since that almost never gets used by anything (I was surprised it could even be detected by terminals).
- setopt 2y agoC-\ is one of my favorite Emacs keybindings :). You use it to change input methods, in my case to write e.g. Greek letters and other Unicode symbols in plaintext files using TeX notation. I sometimes like to program using Unicode variable names when doing physics/math, and this is an easy way to do so built into Emacs.