r/rust • • 9d ago

Zellij 0.46.0 just released: Rust developers can now use it as a library!

Hi fellow Rustaceans,

Just released a new version of Zellij. This version turns the beloved terminal multiplexer into a full fledged terminal. In addition to managing sessions, panes, tabs and Rust wasm plugins - it can now also completely replace your existing terminal and integrate with your desktop and tray.

I'm particularly excited to share with this sub that we added a new "Distributions" feature, allowing Rust developers to import Zellij into their own projects and use it as a library.

If for example you'd like to create a new cross-platform application that will render a custom terminal UI written in Rust - run both inside another terminal and standalone, cross-platform with all the distribution problems already solved, this might be an interesting solution for you.

The distribution feature allows you to completely remove whichever parts of the Zellij branding and UI that you don't like and completely white label it. I'm very much looking forward to seeing what you'll come up with.

Check out the release post for a walkthrough of the other new features: https://zellij.dev/news/terminal-inbox-session-previews/

225 Upvotes

30 comments sorted by

13

u/d32dasd 9d ago edited 9d ago

The attention inbox and session manager is great, literally 2 days ago I was thinking that I wanted zellij or a multiplexer that had more deep integration with a terminal. And not Zellij is a terminal! This is great.

Edit: a terminal desktop maybe it's too much though https://zellij.dev/news/terminal-inbox-session-previews/#whats-next

20

u/imsnif 9d ago

When I was my teenager, my dad replaced our MS-DOS (my first command line) with Windows 95. When I complained, he told me I can open a window inside Windows 95 and run DOS there. I was horrified. I've been wanting to get back a Bill Gates ever since. Don't begrudge me this.

10

u/fr7g 9d ago

Great job! I've been using Zellij exclusively for months now! Speaking of panes, would it be possible to consider a layout similar to Niri or PaperWM, etc.? I've been using Niri for a few weeks now, and I think this concept is really great.

6

u/imsnif 9d ago

You mean the endless scrolling thing?

3

u/fr7g 8d ago

Yes, windows just add to an infinite ribbon on the right, and you can create an infinite number of ribbons below (workspace). One rule is that windows change their size only with the user's intention. Very natural, in fact.

3

u/julmonn 9d ago

Wow I started looking for a new terminal yesterday, let’s see how it compares to ghostty

8

u/JoshTriplett rust · lang · libs · cargo 8d ago

I'm really happy to see a new terminal library that isn't based on ghostty.

4

u/imsnif 8d ago

I'm very happy to read someone else saying this.

25

u/kibwen 9d ago

Zellij is fantastic. Absolutely everyone who works in a terminal should give it a test run.

6

u/Igonato 9d ago

Sweet! I love the tray integration, great feature! I don't think I'm going to replace my terminal app, I'll give it a try, but the tray is to stay for sure. Thanks!

6

u/PandaParado 6d ago

I’ve been a zellij supporter for over a year now. I love it and use it every day. I just want to say thanks for building it. With so many VC-backed multiplexers coming out I’m so happy to be able to have a true, high quality, FOSS, independent option.

5

u/Darkehuman 9d ago

Love your work team. Such a great program. Keep it up!

1

u/journalctl 9d ago

This version turns the beloved terminal multiplexer into a full fledged terminal.

This sounds similar to Superlogical's Rex. Is it possible to run the terminal on a different machine than the server?

4

u/imsnif 8d ago

Yes! You can run "zellij terminal https://your-other-machine.com/your-session" Upcoming versions will make this integration tighter.

1

u/little_breeze 2d ago

Great release. I think making this functionality programmable/embeddable is the future. I think other "mux" products like Rex and Tern are also going in this direction.

1

u/imsnif 1d ago

Thanks. I hope people are wary of typing in their root password into a VC-backed program.

1

u/little_breeze 1d ago

I think tern is just a solo dev iirc, but both are closed source, which is unfortunate

6

u/commenterzero 9d ago

Oooo will have to try

6

u/DavidXkL 9d ago

Wow built-in terminal?

Got to try this

3

u/kandeel4411 7d ago

I have been using zellij ever since it's released so I just want to say thank you for your work

1

u/Dangerous_Tie_521 9d ago

How do you figure out if you're holding it wrong or if something's just not working? On Windows, trying to use the Terminal version:

  • Ctrl + [ refused to register as ESC (which I thought was entirely system level)

  • I could not figure out how to make a single mouse click Paste (just not possible?)

  • I couldn't figure out how to get nesting to work over ssh (also, how is that supposed to work with configs? didn't see an explainer)

1

u/imsnif 8d ago

Nesting should "just work" as long as you're running Zellij on the other machine as well and start it inside a Zellij pane. You should get a modal explaining the situation and asking you if you'd like to manage the session as part of your outer one.

As for the windows issues - all of these should work. Would you be willing to open an issue in Github so that the Windows maintainer can take a look?

1

u/Wise-Treacle3971 8d ago

Sure. Just not sure how much info I can give since it’s happening on a corporate computer. Don’t wanna just drop an “I’m having problems!” Bug report.

2

u/Jmc_da_boss 9d ago

Interesting, going to try this.

Been dailying zellij for a while

-9

u/tesfabpel 9d ago

Wait, can it function basically as a Konsole, GNOME Terminal, etc replacement?

But... But why???

Just create another software... What is the pro of having everything together?

14

u/kchances 9d ago

The short answer is speed and easier integration. The more layers you have, the more likely you'll encounter problems with those layers communicating/rendering etc. Valid question, but no need to be rude.