Live data from Hacker News

Make tmux pretty and usable (2024)

hamvocke.com

91–100 of 285 posts

Re: Make tmux pretty and usable (2024)

#91
post #3

I gave up on it once I discovered https://zellij.dev/ Just even for how tab and panes are setup, and how it's good for scrolling and text selection with your mouse for copy pasting.

I used tmux for a few years, until one day I discovered Zellij. With its significantly better UI and overall user experience, I was instantly convinced.

i tried both and i honestly... i didn't see anything different.

i want tmux for three things:

1. easy splits

2. easy scrollback

3. being able to restart a session if my terminal dies

given all that, tmux works exactly as expected.

what are all these "significantly better ui and overall ux"?

Re: Make tmux pretty and usable (2024)

#93
post #77

Guys, did you know about tmux control mode? It tells the host terminal to treat tmux tabs as actual tabs in the terminal. That means that things like scrollback, tab navigation, copy paste, keyboard shortcuts, etc are all handled natively, and you can visually see all your tmux tabs! It doesn't have great support across all terminals, but it does work great in iTerm 2. Try `tmux -CC` in iTerm. For a tmux novice like…

Holy carp.

Re: Make tmux pretty and usable (2024)

#95
post #13

I stopped using tmux when I started using kitty terminal with native split windows. I prefer the native window management of kitty, but I do miss the session saving of tmux (e.g. if I accidentally close a tab).

Recent versions of Kitty have sessions. https://sw.kovidgoyal.net/kitty/sessions/

Re: Make tmux pretty and usable (2024)

#96
post #38

I would love to have a way to switch sessions easily, like with panes where I just click or have more shortcuts available

People have developed plugins for this. Check out “sesh” for instance.

Switching between sessions with fuzzy finding, and creating new ones when needed, is a wonderful feature.

Re: Make tmux pretty and usable (2024)

#97
post #77

Guys, did you know about tmux control mode? It tells the host terminal to treat tmux tabs as actual tabs in the terminal. That means that things like scrollback, tab navigation, copy paste, keyboard shortcuts, etc are all handled natively, and you can visually see all your tmux tabs! It doesn't have great support across all terminals, but it does work great in iTerm 2. Try `tmux -CC` in iTerm. For a tmux novice like…

this is the only reason i use a mac and in a decade no open source linux terminal has ever implemented this to my knowledge

Re: Make tmux pretty and usable (2024)

#98
post #27

I appreciate that tmux has theoretical advantages over screen, but man does the implementation suck. On Mac it still seems like there's no way to copy text if you have mouse mode on (at least in code-server).

Often, holding down "Shift" while making mouse selections will "break through" and let you get at the O.S. copy/paste/selection mechanism. Highly terminal dependent, though!

Re: Make tmux pretty and usable (2024)

#100
post #21
post #10

Earlier quoted context omitted.

This comment would be a lot more convincing if it weren't in response to one expressing the same sentiment :-)

It is actually true though, I only use tmux nowadays when I am SSHed into a server that I need to do some work on. The only issues I've had with it is that sometimes it's hot keys conflict with vim, but you can easily turn it temporarily off with ctrl+ g. If you're already used to tmux I'm not sure you would benefit much from changing, but it definitely has a better out of the box with pane hints, names, and more use…

Maybe give terminal windows in vim a try? vim is not a terminal multiplexer, but if all you need is multiple terminals windows:

:term to open a terminal in a new vim window (or :vert term)

Standard window movements apply (by default the window prefix is Ctrl-W), most important are: Ctrl-W,{hjkl} to switch between windows, Ctrl-W,{+-} to resize windows, Ctrl-W,{HJKL} to move windows to edges, Ctrl-W,{qc} to (force) close windows

Enter normal mode of a terminal buffer with Ctrl-W,N: now you can perform vim motions and scroll the output

Enter insert mode with i and you can type into the terminal again

In insert mode: Ctrl-W "x to paste register x, Ctrl-W . to send a literal Ctrl-W. If too annoying, you can change the window prefix of vim

This goes for vim, neovim also has a terminal mode but it works differently I think

Post reply on HN