Live data from Hacker News

My tmux setup

unwiredcouch.com

71–80 of 101 posts

Re: My tmux setup

#71
post #2

>But the years of using screen have ingrained in my muscle memory to use ctrl-a I still don't understand how this happened to so many people. Ctrl+a is already taken, how did anyone ever use screen without immediately changing it to something that doesn't conflict with a frequently used shell shortcut?

For the same reason (I'm using Ctrl+a in the shell), I'm using Ctrl+q as prefix for tmux. I'm quite surprised that I've never heard of anybody else using this combination.

Re: My tmux setup

#72
post #44

Earlier quoted context omitted.

You appear to have invented some other post to respond to, mine said nothing about ctrl+b.

Ctrl+b is the standard key combo for tmux, which is why that was mentioned in the article in the first place.

That has nothing to do with the subject of the post in question though. He asked how people ever got accustomed to ctrl+a in the first place, since ctrl+a is already taken by your shell and every readline app, so 90% of people immediately remapped screen to use something else instead of ctrl+a. Tmux and ctrl+b don't enter into the discussion at all.

Re: My tmux setup

#73
post #71
post #2

>But the years of using screen have ingrained in my muscle memory to use ctrl-a I still don't understand how this happened to so many people. Ctrl+a is already taken, how did anyone ever use screen without immediately changing it to something that doesn't conflict with a frequently used shell shortcut?

For the same reason (I'm using Ctrl+a in the shell), I'm using Ctrl+q as prefix for tmux. I'm quite surprised that I've never heard of anybody else using this combination.

You might have issues if you ever accidentally hit ctrl-s and need to use ctrl-q.

Re: My tmux setup

#74
post #6

For the vim lovers, this trick is quite good : unbind [ # free the weird binding set-window-option -g mode-keys vi # switch to vi bindings bind Escape copy-mode # ctrl-a ESC put your pane in a kind of vi normal mode bind-key -t vi-copy v begin-selection # start a visual select mode with v like in vim bind-key -t vi-copy y copy-selection # yank with y unbind p # free another weird binding bind p paste-buffer # paste w…

How is p a weird binding? It's a pneumonic for "previous" and works the same as it does in gnu screen, which is tux's "competitor."

Re: My tmux setup

#75
post #33

Earlier quoted context omitted.

I also love the new zoom pane that comes with 1.8 prefix . It comes very handy!

Didn't know about this. Love it. Appears to be prefix z for me. C-z seems to background the tmux session, which seems reasonable.

yes sorry, you are correct. prefix z it is.

Re: My tmux setup

#76
post #53
post #33

Earlier quoted context omitted.

I also love the new zoom pane that comes with 1.8 prefix . It comes very handy!

Is there an option/way to have "lables" in panes. Just like you have a info bar for windows, I would love to label my panes. Normally have a bunch of panes setup for logs, and it would be really nice to label them so i could tell what is in each pane.

not that I know of. panes have numbers windows have names afaik but I might be wrong.

Re: My tmux setup

#77
post #74
post #6

For the vim lovers, this trick is quite good : unbind [ # free the weird binding set-window-option -g mode-keys vi # switch to vi bindings bind Escape copy-mode # ctrl-a ESC put your pane in a kind of vi normal mode bind-key -t vi-copy v begin-selection # start a visual select mode with v like in vim bind-key -t vi-copy y copy-selection # yank with y unbind p # free another weird binding bind p paste-buffer # paste w…

How is p a weird binding? It's a pneumonic for "previous" and works the same as it does in gnu screen, which is tux's "competitor."

indeed, agreed. I only use the prefix number shortcut for that.

Re: My tmux setup

#78
Thanks for sharing! I was introduced to Tmux at work earlier this year. We used it primarily for remote pairing, but now I use it for anything and everything terminal.

Re: My tmux setup

#79
post #74
post #6

For the vim lovers, this trick is quite good : unbind [ # free the weird binding set-window-option -g mode-keys vi # switch to vi bindings bind Escape copy-mode # ctrl-a ESC put your pane in a kind of vi normal mode bind-key -t vi-copy v begin-selection # start a visual select mode with v like in vim bind-key -t vi-copy y copy-selection # yank with y unbind p # free another weird binding bind p paste-buffer # paste w…

How is p a weird binding? It's a pneumonic for "previous" and works the same as it does in gnu screen, which is tux's "competitor."

> It's a pneumonic for "previous"

I'm guessing this is autocorrect, but an autocorrect that knows 'pneumonic' (the Firefox spell-checker doesn't!) but not 'mnemonic' seems even less likely than a person who knows the first word but not the second.

Anyway, 'previous' is perhaps less likely to spring to mind than 'back' or 'reverse' or even 'last', each of which would have different mnemonics. ('Last' has a particularly good mnemonic if you keep your hands to the Holy Home Row, which is why vi users, who are most likely to worship at the Altar of the Home Row, can't use it.)

Re: My tmux setup

#80
post #5
post #2

>But the years of using screen have ingrained in my muscle memory to use ctrl-a I still don't understand how this happened to so many people. Ctrl+a is already taken, how did anyone ever use screen without immediately changing it to something that doesn't conflict with a frequently used shell shortcut?

Indeed. I've been using Ctrl-\ as my Ctrl-a in screen (and occasionally tmux). Turns out that I never use that keystroke in real life.

You should, ctrl-\ is the best process killer. No way to escape from xtail without it, for instance. And sometime it will help getting out of python scripts like nosetests.
Post reply on HN