Live data from Hacker News

Zellij – A Terminal Workspace and Multiplexer

zellij.dev

211–220 of 248 posts

Re: Zellij – A Terminal Workspace and Multiplexer

#211

Earlier quoted context omitted.

> The second thing I noticed is that it uses ctrl-r as a core shortcut. Mega problem: ctrl-r is a built-in bash feature which I use every day to recall previous commands. This makes me think I can't use this tool at all. In fairness, ctrl-a (screen default) and ctrl-b (tmux default) are also super useful readline shortcuts in bash (c-a = go to beginning of line, c-b = back one character). EDIT: Sorry, I just realized…

Oddly enough, almost nothing binds the space bar. I've been using ctrl-spc as my tmux prefix for years without a single conflict. I think this is because there is somewhat limited support for ctrl-space on older terminal emulators.

This is a very good one! I've used it for a while before discovering I prefer to use ctrl-spc to trigger intellisense in neo vim.

Re: Zellij – A Terminal Workspace and Multiplexer

#212
post #10

Earlier quoted context omitted.

> I'm not sure I could untrain all my muscle memory I've built up over the years with my TMUX configuration You could quite easily configure Zellij's keybindings [0] to mirror your tmux config. [0]: https://zellij.dev/documentation/keybindings.html

That's great! As soon as it supports detaching a running session I'll take a look at migrating.

Here's the tracking issue for that: https://github.com/zellij-org/zellij/issues/69

Looks like it'll be coming relatively soon (there's already a PR open, although it needs some refinement)

Re: Zellij – A Terminal Workspace and Multiplexer

#213

What's the point of fitting multiple terminals in a single text-mode screen when everybody is using GUI terminal emulators and tiling window managers? I remember good old pure text-mode days with warmth but doubt there are many people actually doing it nowadays. So I imagine this (thesubject) is going to be ran inside a GUI terminal emulator window and I don't understand how is that better than just having more windo…

Anecdata: I don't want to tile all my windows, only terminals, so I'm not interested in tiling WM. I also jump between OSs and appreciate being able to have the same terminal multiplexing behaviour on both linux and macOS, without needing to learn the keyboard shortcuts and idiosyncrasies of two different GUI terminal multiplexers. As another commenter pointed out, being able to multiplex in the exact same way for re…

If that's a screenshot of your setup do you mind sharing your config? :)

Re: Zellij – A Terminal Workspace and Multiplexer

#214
post #61
post #27

I love that the UI can be explored by the user, since it shows available keyboard shortcuts. This is something where GNU screen or tmux suck, because you really have to lookup how to operate these tools. In some manual or with google.

Yes, I think more than "written in Rust", what is attractive about these tools (and other Unix replacements like Ripgrep, FZF) is more their attitude of "we have a lot more computing power and higher resolution/larger screens now. let's have saner defaults, intuitive UIs or larger search spaces (in case of FZF) to actually take advantage of that."

I will say that one aspect of "written in Rust" is the combination of a high performance language (giving more head room for adding features) and a great packaging story (so you can build on the shoulders of giants, like burntsushi, author of ripgrep).

Re: Zellij – A Terminal Workspace and Multiplexer

#215
post #205
post #143

I've been using tmux for quite a while, though at a fairly casual level. The first thing I noticed is that this interface is discoverable - it shows me what I can do, which is incredible and makes me want to use it. The main reason I've been a casual tmux user and not an advanced one despite using it for years, is because every time I want to try something new I have to google if it's possible. The second thing I not…

> Ctrl-b is what tmux uses, so you know it's safe Ctrl-b is "back one character" in most apps that use readline (including bash) and emacs. For that reason I change my Tmux prefix to Ctrl+Y (I also think it is more ergonomic).

C-b is what tmux uses because it was developed in screen and and C-a was taken. I always change my tmux config to C-a leader and C-a-a for literal C-a

Re: Zellij – A Terminal Workspace and Multiplexer

#216
post #192

Earlier quoted context omitted.

> Shouldn't that be completely opaque to the user? That would have been nice indeed. However many languages use lots of memory and are a bit slow, or are security-dangerous like C. It's nice to know, then, that this app likely uses barely any memory at all, and is as fast & keyboard-responsive as it can be, and harder to hack — Rust. (Assuming it is implemented in a good way :- ))

If it's faster or uses less memory, that's something that can be easily measured. If it's more secure, that's harder to measure. But that's not even the tagline, just that it's written in Rust.

I wrote "or are security-dangerous like C" actually,

— that's easy to measure, if it's written in C or not (or some other memory unsafe language)

Re: Zellij – A Terminal Workspace and Multiplexer

#217
post #205
post #143

I've been using tmux for quite a while, though at a fairly casual level. The first thing I noticed is that this interface is discoverable - it shows me what I can do, which is incredible and makes me want to use it. The main reason I've been a casual tmux user and not an advanced one despite using it for years, is because every time I want to try something new I have to google if it's possible. The second thing I not…

> Ctrl-b is what tmux uses, so you know it's safe Ctrl-b is "back one character" in most apps that use readline (including bash) and emacs. For that reason I change my Tmux prefix to Ctrl+Y (I also think it is more ergonomic).

C-y is yank though (in both emacs and readline); I definitely use yank more than C-b.

I switched my .screenrc to use ^O as the escape key; in vim insert mode it's "take the next keystroke(s) from the normal mode keymap" so you can `^O d t $` from insert mode to delete up the end of the line or whatever. I never use that in vim. I don't even remember what exactly it does in emacs, something that inserts a newline. In readline I think it's "accept-and-...something-else", that I also never use.

I usually run a single actual terminal, running a "meta" screen session, with one sub-screen session for each project or environment. The outer screen uses ^Z as the escape key because I hardly ever use this for she'll job control (I have ~infinity screen windows, after all).

Re: Zellij – A Terminal Workspace and Multiplexer

#218
post #203
post #114

Earlier quoted context omitted.

fwiw, if youre in tmux you can hit -?, so for me it's ctrl+w+? and itll show all available tmux commands.

ctrl-w is a very commonly used key to control vim windows. How do you manage with that? I have my tmux leader key mapped to ctrl-z as we hardly use it these days.

I'm using ctrl+b (xfce-terminal) but also don't use vim

Re: Zellij – A Terminal Workspace and Multiplexer

#219
post #207
post #22

Earlier quoted context omitted.

I use tmux locally even though I run i3 as my window manager. Mostly because I configured tmux to show the current directory and git branch (if in a git directory) so I can keep my prompt a clean "$".

Not knocking your setup but you can have can configure most terminal emulators to put that info in the title and have that displayed on your bar.

I use i3 and the Simple Terminal (ST) so no titles and no bars for me.

If anyone is curious what it looks like: https://imgur.com/Xx19sFn.png

Re: Zellij – A Terminal Workspace and Multiplexer

#220

What's the point of fitting multiple terminals in a single text-mode screen when everybody is using GUI terminal emulators and tiling window managers? I remember good old pure text-mode days with warmth but doubt there are many people actually doing it nowadays. So I imagine this (thesubject) is going to be ran inside a GUI terminal emulator window and I don't understand how is that better than just having more windo…

I don't know a single developer that actually stuck with tiling window managers. I know a ton who use kitty or tmux in their terminal of choice.
Post reply on HN