Better HN
topnewbestaskshowjobs
Log inSign up

imsnif

414 karma · joined Nov 19, 2017 (9y ago) · 81 submissions

Submissions

1.

The Zellij terminal multiplexer now runs natively on Windows(zellij.dev ↗)

3 points · by imsnif · 8mo ago · discuss

comment 1y ago · link · parent

Yes! With built in authentication.

comment 1y ago · link · parent

For 1 - there's actually a nice proposal from WezTerm to make this an all-purpose general protocol that I hope happens: https://github.com/wezterm/wezterm/discussions/4889

For 2 - I think this can be achieved with scroll vertical/horizontal scroll regions (which should also boost performance a bit). I hope to implement this in the future.

comment 1y ago · link · parent

Hi all, I'm the author of this article. Happy to answer any questions.

5.

Terminal sessions you can bookmark(poor.dev ↗)

86 points · by imsnif · 1y ago · 12 comments

comment 1y ago · link · parent

Hi, I'm the author of this article. Happy to answer any questions.

comment 1y ago · link · parent

When I tried to get into programming as a teenager, I opened a graphical IDE and was immediately overwhelmed by a barrage of menus, popping windows and tooltips. This led me to believe programming is not for me. In later attempts I used vim (back then that's what people used to recommend those starting out with perl) and felt right at home.

These days I still use vim (almost stock) for everything (right now mostly Rust). This is totally anecdotal, but I'm usually more productive than my teammates - mostly because of the initial hurdles of getting into a new codebase or parts thereof. I don't have anything to set up, I just open it up and grep my way to success.

Every now and then I try to open an IDE and force myself to work with it a little bit just to be sure I'm not missing anything. The visual overload and lack of advanced editing are just too much for me. Going back to vim is always a breath of fresh air.

I'd sooner use nano/notepad.exe than any sort of graphical IDE (though I prefer vim).

I'm not saying this is the best way, I definitely do not recommend it to those asking me how to get into programming, but it's definitely the best one for me.

comment 2y ago · link · parent

tmux popups are not first class citizens (eg. at least in current versions they freeze the display behind them, opening a terminal inside one of them is a pain as well as opening multiple ones, not to mention resizing them or rearranging them intelligently)

comment 2y ago · link · parent

We actually looked into it and found it to be the Rust allocator after all (the memory is freed after a day or two and afaict should not cause oom issues). I'm sorry for not writing this up in the issue, this was heavily investigated by another maintainer and they have not yet found the time to write this up.

comment 2y ago · link · parent

Yes they are. They work out of the box as I mentioned. This is what originally helped me move from screen to tmux, so it was important to me to provide the same experience.

As for comparisons to tmux: I shy away from those. Just like I shy away from comparing chocolate cake to lemon cake. Both are awesome. Use what you like and decide for yourself.

comment 2y ago · link · parent

Session detach was added 2+ years ago and tmux keybindings work out of the box. You can also remove any part of the UI you do not like and there are some pretty friendly built-in alternatives that take up less room.

That being said - use whichever software makes you happy. I'm just a stickler for facts. :)

comment 2y ago · link · parent

Not accounting for tastes and preferences, but it is decidedly not true that tmux does everything Zellij does (just some very minor examples are: true floating panes, true multiplayer support, stacked panes, etc.)

As for prevalence: this very often has to do with the distributions themselves and their ability to accept certain (rust) dependencies.

Otherwise though, I always say Zellij is not competing with tmux. That tool choices should be more equivalent to clothing choices than to choosing a school for your kids. Choose what you like, there should not be religious disagreements here.

comment 2y ago · link · parent

You can make it as compact as you like: https://zellij.dev/documentation/faq#the-ui-takes-up-too-muc...

comment 2y ago · link · parent

Hey, you can remove borders around a pane at runtime with (default) `Ctrl p` + `z` or from the config with `pane_frames false`.

15.

How to get users for your open source project [video](youtube.com ↗)

1 points · by imsnif · 2y ago · discuss

comment 3y ago · link · parent

The session name yes, the branding no. You can create a custom plugin though instead of the built-in UI ones and render whatever you like...

comment 3y ago · link · parent

Thanks! If you could also specify how you measured it and attach some debug logs (there are instructions in the issue template) that would be great. Because my instance has run overnight without issue and I'd love to be able to reproduce this.

comment 3y ago · link · parent

I'm pretty sure our plugin system predates your project (it's been around since before our beta was released in 2021, we've just given it the attention it deserved right now).

I'd definitely have wanted to outsource this though if we didn't have the infrastructure in place already. Extism seems solid.

comment 3y ago · link · parent

Keeping track is hard sometimes, I saw it again in the issue as you mentioned. :)

comment 3y ago · link · parent

I'm like 90% sure this was fixed - if you'd be willing to try with a recent Zellij version, that would be great.

Otherwise, I'll try your reproduction myself and will fix if I can reproduce. Thanks.

comment 3y ago · link · parent

Sure thing! Btw, plugins can also open these command panes, this is how the multitask "mini-ci" plugin works.

comment 3y ago · link · parent

Hi, Zellij has this feature. Please check out command panes: https://zellij.dev/documentation/zellij-run.html

You can either open them through the cli with "zellij run -- <your command>" when inside a zellij session, or set them up in a layout so it opens all of the ones you want in a new tab arranged the way you like.

comment 3y ago · link · parent

Hey, there are no memory leaks that I'm aware of (there were a few, but we plugged them in recent months). If you know differently, I'd appreciate an issue report.

comment 3y ago · link · parent

Very soon! We want to implement it as a default plugin and wanted to release this system first.

comment 3y ago · link · parent

Good question!

A few reasons:

1. Ease of distribution - distributing a precompiled wasm blob is immensely easier than distributing an application

2. Sandboxing - both on the fs level and regarding special permissions, which brings us to

3. Stronger capabilities - you can use the terminal workspace around you by manipulating panes, tabs and other plugins, creating a workspace experience rather than a single app

4. More knowledge about the application - want to trigger when the user enters a certain folder? When a certain pane is focused? When certain text appears on screen?

5. Composability - integrate with other plugins to render a dashboard-like experience rather than a single app that a user needs to manually compose

While some of these are also achievable with native apps, I have found that if you give users (developers in this case) opinionated defaults that make integration easier - you'll get more people building more interesting things. Even if they technically can implement them all on their own.

26.

Using Layouts for Personal Automation(zellij.dev ↗)

1 points · by imsnif · 3y ago · discuss

comment 3y ago · link · parent

Yes: https://zellij.dev/tutorials/basic-functionality/

28.

Developing Through the Terminal with Zellij(zellij.dev ↗)

3 points · by imsnif · 4y ago · discuss

29.

Zellij 0.32.0: YAML to KDL, control through CLI and a new Layout System(zellij.dev ↗)

4 points · by imsnif · 4y ago · 1 comment

123