Live data from Hacker News

Tmux 2.0 released

sourceforge.net

61–70 of 221 posts

Re: Tmux 2.0 released

#61

Earlier quoted context omitted.

Ah, I forgot to mention: the resize -if the terminal-window is smaller- will still happen, but as long as the two sessions are operating on a different window they can be of different size.

I think I'm missing something. Terminal A: 300x10 lines (long across, but short) Terminal B: 120x30 lines (standard new terminal size) I have a tmux session running in A; I open terminal B, and attach to it with -new-session. My first pane is trimmed to the height of Terminal A. If I do prefix-c (create new pane), the new pane is now the size of Terminal B - hurray! But if I open Terminal C, which is yet another size…

> But if I open Terminal C, which is yet another size, and attach to my existing session [...]

I might be misunderstanding, but could you not use `tmux new-session -t 0` again for the third terminal?

> and when I disconnect from Terminal C, those panes do not appear to switch back to what they now should be, unconstrained by Terminal C.

Odd. Unrelated to your earlier issue, but that's not what I'd expect or am seeing when I try to reproduce is locally.

Re: Tmux 2.0 released

#62

Earlier quoted context omitted.

Why not use C-a?

For a while I ran a setup where I did all of my work in a local tmux session, but part of this work involved SSH-ing and attaching to a screen session. When using both, especially nested, I found it beneficial to have a different leader for each. I also use to go to the start of the line, so I'd miss that.

I use `bind a send-prefix` and do a ` a` to make up for the bind :)

Re: Tmux 2.0 released

#63

For those who are just getting started with tmux: I advise looking around others' .tmux.conf files for some sensible settings. Like Vim, Tmux ships with a lot of powerful features disabled by default. My absolute favorite has to be binding a hotkey to opening URLs in the current window [0]. See [1] for a small demo I just recorded. To get started, here's my current config: [1] [0]: https://github.com/jbnicolai/tmux/b…

Why do you create a new window to maximize a pane [1] instead of using resize-pane -Z (mapped to bind-key z by default)?

[1]: https://github.com/jbnicolai/tmux/blob/master/.tmux.conf#L96

Re: Tmux 2.0 released

#64
post #52

For those who are just getting started with tmux: I advise looking around others' .tmux.conf files for some sensible settings. Like Vim, Tmux ships with a lot of powerful features disabled by default. My absolute favorite has to be binding a hotkey to opening URLs in the current window [0]. See [1] for a small demo I just recorded. To get started, here's my current config: [1] [0]: https://github.com/jbnicolai/tmux/b…

Zoom/Unzoom is now part of default tmux. z So you can remove this line from your config: https://github.com/jbnicolai/tmux/blob/master/.tmux.conf#L98

You're absolutely right, thank you!

Re: Tmux 2.0 released

#65

The main thing that I wish I could have in tmux is the ability to disable other sessions attached to the current terminal without outright detaching them. I intend to go back to that other machine at some point, I just don't want its tiny screen making my current session tiny for no reason. Maybe this is actually possible already and I just haven't found it?

Say you want to attach to session 0 (use `tmux list-sessions` to see available sessions). A trick I've found is not attaching to that session, but starting a new session sharing all underlying windows. The model in tmux is [session]->[windows]->[panes], but something I did not realize until recently is that [session] can be multiple. So rather than `tmux attach -t 0` use `tmux new-session -t 0`, allowing you to inter…

I don't have any issue with the session itself being shared. It's actually the desired behaviour almost all the time. I just don't want to be dependent on the frame sizing of a terminal no one's even looking at.

Re: Tmux 2.0 released

#66
post #13

The main thing that I wish I could have in tmux is the ability to disable other sessions attached to the current terminal without outright detaching them. I intend to go back to that other machine at some point, I just don't want its tiny screen making my current session tiny for no reason. Maybe this is actually possible already and I just haven't found it?

Just send it to a different session then switch back when you're ready.

Could you explain in more detail? I don't understand the practical meaning of what you're suggesting.

Re: Tmux 2.0 released

#67
post #40

Earlier quoted context omitted.

Sometimes I have to get useful tools from them....like tmux. As to why I use Adblock, I've never. Not once. Ever. Bought anything from an ad on a website. I _have_ bought books and such from the referral links on blogs (which adblock doesn't block). The reason I use adblock is because I'm not the demographic ads on websites are targeting. So websites aren't losing any revenue by me not seeing their ads.

Adverts are not just about getting a click to follow through to a purchase. What do you gain by blocking adverts? An extra 150K from your data plan? >websites aren't losing any revenue by me not seeing their ads. This argument is a little too close to justifying piracy for my liking. "I wasn't going to buy it anyway, so it's fine"

> What do you gain by blocking adverts?

...a lack of adverts?

> This argument is a little too close to justifying piracy for my liking.

Except it's within everyone's rights to decide how their computers will render a given piece of markup.

Re: Tmux 2.0 released

#68

I use tmux all the time, but I've read about dtach/dvtm. http://www.brain-dump.org/projects/dvtm/#why Anyone using that instead ?

Have a look at abduco as well. It's a (IMHO) more user-friendly (and supposedly cleaner) dtach replacement, from the author of dvtm.

Re: Tmux 2.0 released

#69

For those who are just getting started with tmux: I advise looking around others' .tmux.conf files for some sensible settings. Like Vim, Tmux ships with a lot of powerful features disabled by default. My absolute favorite has to be binding a hotkey to opening URLs in the current window [0]. See [1] for a small demo I just recorded. To get started, here's my current config: [1] [0]: https://github.com/jbnicolai/tmux/b…

Here's mine: https://github.com/olalonde/dotfiles/blob/master/tmux.conf

One tweak I can't live without is having the same key bindings to seamlessly switch between tmux panes and Vim split windows. (https://gist.github.com/mislav/5189704)

TPM is also really useful for managing tmux plugins https://github.com/tmux-plugins/tpm.

My prefix key is Ctrl-Space. It's very convenient to press on the keyboard, I'm surprised to not see it used more widely (maybe because it's commonly bound to some OS utilities?).

Re: Tmux 2.0 released

#70
Holy moley, I knew there were 24 function keys at one point, but 63? That's crazy! I love learning little things like that.

I'm definitely glad modifier+key shortcuts are so common. I like it when shortcuts can be somewhat mnemonic (and I love vim).

Post reply on HN