Comment by qudat

Comment by qudat 2 days ago

7 replies

libghostty is stellar! I’m using it for my session persistence for terminal processes tool: https://github.com/neurosnap/zmx

When users reattach to their session we render the terminal state and output from ghostty. Super cool and works really well. It’s basically tmux-lite in 1k LoC

Graziano_M a day ago

I like that. I don’t want to use tmux (and I don’t when I’m working on my local machine), but I can’t escape it when SSHing. I could ssh to a ton of sessions, but then I 1. Have to remember their names 2. Can’t easily create a new pane (on the remote host) for some short task and 3. Need yet another solution for restoring my pane layout for when my client restarts.

Maybe I’ll try the session name thing, I just foresee it being annoying. Do you see your tool as a shpool replacement?

  • qudat a day ago

    Yes this completely replaces `shpool`.

    I totally understand your concerns for creating new terminals for short tasks. I generally lean towards `nvim` terminal buffers to solve that issue. Or I have a `term` session open that I can quickly go to for random terminal commands that don't belong to a project.

  • Graziano_M a day ago

    I also (coincidentally) just started using OP's coder, and that also sets up ssh config to use special wildcard hosts, and unfortunately 'hogs' the config (it threatens to trash any changes to the coder section).

  • fragmede a day ago

    Don't give them useful names, just call them 1 or 2 or asdf and let your brain do the mapping.

ac29 a day ago

Love this idea. Though, apparently zig isnt available in any version of Debian including sid, which is annoying. A multiyear packaging effort stalled out 8 months ago with zig 0.14, which is too old for zmx.

Will try this out on my arch system later this week though.

  • qudat 21 hours ago

    My next step is to package this tool so people can easily install it.

conradev a day ago

This is super cool! I didn’t know I was looking for exactly this, but I am