News for hackers. Stuff that matters.
Re:Tmux Tutorial by sliken on Monday September 23, 2019 @09:57PM (#21055748)
I tried it for awhile, was puzzled by their choices of defaults, and ended up switching back to screen.
Re:Tmux Tutorial by stuxnet79 on Monday September 23, 2019 @10:04PM (#21055772)
I prefer tmux to screen but the default key mappings took some getting used to. I've used it long enough that Ctrl-B and " / % for the screen splitting are natural to me now, but initially it was ... rough.
Re:Tmux Tutorial by rovr138 on Monday September 23, 2019 @11:39PM (#21056275)
You could remapped whatever you don’t link.

I have Caps Lock set to be Ctrl and tmux set to use Ctrl+a. For a vertical split, I have it mapped to Ctrl+a, |. For horizontal, Ctrl+a, -

It’s pretty flexible.

Re:Tmux Tutorial by iamnotacrook on Tuesday September 24, 2019 @05:35AM (#21058075)
Forgive me for asking a sort-off-offtopic question, but what's the reason terminals - and therefore the programs which run within them - offer such limited scope for ctrl-key usage. A lot of characters are not available for remapping, such as ctrl-numeric-digit, or ctrl-shift-anything etc. What's the root cause of this? Is it telnet related? ssh? And, assuming there's a compromise somewhere, would it be possible for the problem to be lifted with a config option which says "I'm using this shell locally on my chromebook - please don't inflict this 40 year old restriction on me"?
Re:Tmux Tutorial by bmn__ on Tuesday September 24, 2019 @06:52AM (#21058532)
> What's the root cause of this?

It is stems 100% from the terminal emulator. Just install a better one. Test your keys with https://metacpan.org/source/PEVANS/Tickit-0.67/examples/demo...

Screenshot: https://i.imgur.com/JfHjJXy.png

The only key combos marked not ok are global/taken by the window manager, so they don't arrive at the application.

Re:Tmux Tutorial by sooheon on Tuesday September 24, 2019 @02:22AM (#21057093)
Not sure why ctrl-a and ctrl-b are such popular prefixes, I use both a lot editing readline.
Re:Tmux Tutorial by pdpi on Tuesday September 24, 2019 @04:15AM (#21057690)
I definitely hear you on ctrl-a. No idea what ctrl-b does, though?
Re:Tmux Tutorial by u801e on Tuesday September 24, 2019 @08:46AM (#21059481)
It moves the cursor back one character (which is the default readline binding). In screen's case, you can send ctrl-a to readline by pressing ctrl-a a.
Re:Tmux Tutorial by lahcim8 on Tuesday September 24, 2019 @02:55AM (#21057262)
Exactly! Have you found any decent replacement?
Re:Tmux Tutorial by simtel20 on Tuesday September 24, 2019 @09:42AM (#21060028)
I use a backtick, but don't edit much e.g. markdown in my tmux sessions, and always use $(...) for command substitution so I don't normally feel any pain. One oddity with tmux is that to escape the control character you don't press it twice, you press the escape char then ctrl-b, so that is a lot of extra movement around the keyboard
Re:Tmux Tutorial by rabidrat on Tuesday September 24, 2019 @12:35PM (#21061968)
Backtick is my favorite too. Interestingly I thought it was an obscure choice, but it seems to be the 3rd most popular prefix from an analysis of tmux.conf files on github (after Ctrl+A and Ctrl+Space). I use `` (double-backtick) to escape the backtick and it's eminently reasonable.
Re:Tmux Tutorial by fwip on Tuesday September 24, 2019 @11:41AM (#21061346)
Could you bind prefix + ` to insert a literal backtick? I've only ever used the default ctrl-b prefix so I'm not sure.
Re:Tmux Tutorial by patrec on Tuesday September 24, 2019 @03:51PM (#21063907)
I like ^Z, since it's about the only keybinding that's not used by common terminal software. To actually send a program to sleep, just double up: ^Z^Z

    # In ~/.tmux.conf Change prefix key to Ctrl+z
    unbind C-b
    set -g prefix C-z
Re:Tmux Tutorial by tambourine_man on Tuesday September 24, 2019 @08:09AM (#21059141)
Control-Space is perfect for me
Re:Tmux Tutorial by flukus on Tuesday September 24, 2019 @08:03PM (#21066112)
And compliments vim really well if you set your leader key to space.
Re:Tmux Tutorial by wiennat on Tuesday September 24, 2019 @04:01AM (#21057614)
I use Ctrl + q