News for hackers. Stuff that matters.
Re:Tmux is worse-is-better by pzmarzly on Saturday May 25, 2024 @02:29PM (#40476905)
From the perspective of "a regular user" (which is a bad term, because of course I see myself as the norm), I don't care if multiplexer is part of terminal app or not, but I do care about it reacting to my clicks. I don't want to learn obscure multi-step keyboard shortcuts in order to open a new tab, rename a tab, resize a pane, reorder tabs, copy the scrollback buffer, etc.

Sadly, that seems to leave me with only 2 options that work well over SSH:

- using a terminal with client-server model and built-in multiplexer (VSCode Remote SSH extension, WezTerm)

- using iTerm2 with tmux integration (apparently nothing else implements tmux control protocol https://unix.stackexchange.com/a/280829)

Re:Tmux is worse-is-better by Barrin92 on Saturday May 25, 2024 @02:31PM (#40476917)
you might want to give Zellij a try. (https://zellij.dev/) Works like tmux but with the UI friendliness of more modern apps.
Re:Tmux is worse-is-better by pzmarzly on Saturday May 25, 2024 @03:28PM (#40477248)
Okay, just going through the first tutorial[0], I am convinced that Zellij is truly something else. I've never opened up my wallet[1] so quickly for any open-source project, but here the author is clearly creating something amazing (and maintaining awesome documentation and tutorials!). Thank you a lot for this recommendation :D

BTW this is the first time I've seen a working drag and drop TUI (you can use drag-and-drop to move floating panes around).

[0] https://zellij.dev/tutorials/basic-functionality/ [1] https://github.com/sponsors/imsnif

Re:Tmux is worse-is-better by skitter on Saturday May 25, 2024 @03:54PM (#40477403)
Maybe it's because I don't use it that intensely, but I've found the default a bit noisy, so I switched my default layout to only contain `pane` and turned pane frames off.
Re:Tmux is worse-is-better by naikrovek on Saturday May 25, 2024 @07:52PM (#40478718)
TurboVision from the 1980s or 1990s has draggable and overlappable windows inside a single shell/DOS screen.

https://tvision.sourceforge.net/tvQNX-pterm-photon.jpg

Re:Tmux is worse-is-better by iforgotpassword on Sunday May 26, 2024 @03:45AM (#40480367)
Yes but that's just writing to the vram directly, just as keyboard and mouse are read directly. Not the madness of going through heaps and loads of batshit crazy terminal extensions, escape codes and decades of cruft and hacks piled upon the tty.
Re:Tmux is worse-is-better by naikrovek on Sunday May 26, 2024 @06:07PM (#40485832)
That's not correct. Tvision has worked in terminals for almost as long as terminals have existed.

https://github.com/magiblot/tvision

Re:Tmux is worse-is-better by Izkata on Saturday May 25, 2024 @05:48PM (#40478130)
Reminds me a bit of twin: https://github.com/cosmos72/twin

I found out about it from this blog post nearly two decades ago: http://web.archive.org/web/20190120170204/http://www.termina...

Re:Tmux is worse-is-better by 98347598 on Saturday May 25, 2024 @07:51PM (#40478715)
Unfortunately zellij doesn't implement job control properly, so running certain daemons or other things that use process groups are very broken.
Re:Tmux is worse-is-better by heavyset_go on Saturday May 25, 2024 @07:42PM (#40478681)
Try Byobu with mouse-mode on. It uses a tmux as a backend and provides complete control with a mouse, including context menus that allow you do all of the things you listed without obscure keyboard shortcuts.
Re:Tmux is worse-is-better by fwip on Sunday May 26, 2024 @05:35PM (#40485598)

    set-option -g mouse on
Drop that in your ~/.tmux.conf file.

Then you can create new windows or panes by right-clicking (and clicking on the drop down), click on a pane to focus it, click on a window name to focus it, right-click to rename it, drag to highlight text or to adjust the width of a pane, etc, etc.