Zellij for Tmuxers
Вставка
- Опубліковано 9 чер 2024
- While Zellij IS INCREDIBLE. It comes very "raw" out of the box. Weird conflicts with Vim forces using lock mode, behaviours which made Tmux great are sometimes ignored (ahm ahm locked modes). In this video I'm going through how I made changes, why, to a point where Zellij actually feels superior now.
LINKS AND TOOLS MENTIONED
▶ github.com/omerxx/dotfiles
MY FAVOURITE GEAR
* If you enjoy my content, using the links below will help me with a small commission, so thank you!
⌨️ My keyboard is the wonderful HHKB: amzn.to/3HwJG60
🔗 The HHKB is wired with a high quality coiled cable: amzn.to/3DCA87d
⌨️ Backup keyboard (for traveling mainly) - Nuphy Air60: amzn.to/3R3M7jz
🖥️ My ultra wide 49" monitor: amzn.to/3JbVThC
🎙️ Microphone - Shure MV7X: amzn.to/3kA7tZZ
🦾 Boom Arm - amzn.to/3ZmQgln
🎤 Audio Interface (for XLR microphones) - Focusrite Scarlett Solo: amzn.to/3Z3fBkQ
🦾 Heavy Duty Monitor Arm: amzn.to/3kKp7tS
🖱️ Mouse - MX Master 3: amzn.to/3DiZmaj
📷 Camera - ZVE10: amzn.to/3I1jfVS
🎥 Lens - Sigma 1.4 16mm: amzn.to/3BfFN15
CONSIDER SUPPORTING THIS CHANNEL
☕ Buy me a coffee: www.buymeacoffee.com/omerxx
🎷 60 day free Epidemic Music!: share.epidemicsound.com/w6zfxo
MY KEY LINKS
🍿 Subscribe: www.youtube.com/@devopstoolbo...
🌍 My website: omerxx.com
🗞️ Dev & Ops tools Telegram channel: t.me/espressops
🎙️ DevOps Topeaks Podcast: topeaks.buzzsprout.com
⏱ Timestamps
00:00 - Intro
00:35 - Panes & Tabs
02:30 - Locked & Session Modes
03:02 - Pane Mode
03:24 - Tmux Mode
03:40 - Fixing my mapping to the "old ways"
04:52 - Tabs Mode
05:22 - My Config
06:25 - Zoom & Frames
07:35 - Simplified UI
07:48 - Final Thoughts
#devops #ops #cicd #flyio #productivity #dev #terminal #tmux #system #sysadmin #cloud #cli #ops #ricing #linux #macos #commandline #typing #keyboard #tutorial #beginner - Наука та технологія
Hey there! While I don't run the Zellij social accounts, I also really like your videos and am very happy you like Zellij. It's always great to hear feedback on usability - *especially* from advanced users. I plan on doing another iteration on the UI/UX over the summer and this was very useful to hear.
While I don't personally like comparing to tmux and don't feel Zellij is competing with it, about floating panes: last time I tried them in tmux they froze the entire display behind them when visible (so that you can't for example live tail a log behind the pane), and generally seemed more like "popups" - there to briefly display information (eg. a menu or a command output) rather than be a first class citizen. But maybe things changed since then.
Also, a personal request: I see in your videos that the frame color of panes is sometimes partial (eg. only appears on their side). I think this is a bug and I have not encountered it before - if you'd be willing to open an issue in the repository and telling us a bit more about your environment (eg. which terminal emulator you're using) that would be great - thanks!
Aside from that, I'd be curious what you think of command panes zellij.dev/documentation/zellij-run.html (especially the re-run on ENTER and close on ctrl-c functionality) and stacked panes.
Once again - cool videos!
Oh man I’m humbled to hear from you! Thank you so much for Zellij and this feedback. I’ll be more than happy to help wherever I can, whether by issues / UX sessions or whatever. I think Zellij has an amazing potential and killer features which even tmux can’t deal with.
I understand the reluctance to compare and it’s hard not to 😅
I’m running with Wezterm, and I’d be happy to share my full config and some other bugs I’ve encountered!
Thanks again!
I'm glad to see that you like Zellij
I was JUST watching a Zellij video this morning!
I plan to setup Zellij to replace my tmux setup
There are some caveats! But all in all - great product, I've been happily using it in the past few weeks
This is an impressively well made video. A pleasure to watch. Thank you.
I'm strugglin with something much simpler: setting up my terminal in MacOSX so that (a) it looks nice (b) I can always hotkey into it.
Can you say a word about that? Yours looks great. I presume it's iTerm.
Hi! Thanks!
Yes this was term but since I moved quite a bit and settled on WezTerm, check my latest videos to see. The actual current look is comprised of 1. My prompt - which is now Starship (there’s a video on that from the past month on my channel) and 2. Tmux, which I improved greatly also in a recent video (“UX expert fixes my tmux”). Check both!
As far as hotkeys go, I do one of two things - a. Run it through skhd - HIGHLY recommended / b. Use a macro with my keyboard (moon lander). Both of these are videos in the making but nothing I can share at the moment
Hey! Cool stuff. Im considering the jump into zellij but not really sure yet since I have a lot of plugin dependence.
Btw, what are you using for those floating notifications that popped up now and then throughout the vid?
Hey! Could you point me to one? You mean in vim or something else
One feature I really like about Zellij is lock mode, but I do already have some ideas to bring it to Tmux too as a plugin!
Honestly, to me it felt like a patch, something that has to be there to coverup for other, more important key combinations- like vim’s jump lists, number increments, console command history (ctrl p / ctrl n) and so on…
@@devopstoolbox I think that is why it was implemented but I personally do have some non prefixed bindings in Tmux that would be nice to toggle on and off sometimes.
@@TheSast this makes total sense :)
I'm pretty much always using zellij while working in a terminal. While there are plenty of default configurations that clash with other tools or maybe just don't quite feel right I don't think this is a problem because they are customizable. Something I do sometimes encounter, though, that can be an issue is degraded performance when trying to scrollback or search through large amounts of text in stdout. Generally happens with large logs from complex builds or installs. Or potentially reading the logs from a long running process/service. When I hit this I tend to need to open a terminal outside zellij to perform that task.
I can relate to the last bit, where opening another terminal / tool is the one thing I want to avoid almost at all costs. I think Zellij are making great efforts and changes are underway!
Is there a way to toggle-off the "help" bar on the bottom? Feels very clunky.
Anyone know the name of the tmux plugin that dumps history into a vim session? I can't seem to find it.
What's your fix for the lack of resurrect functionality in Zellij? I know you can specify layout file on startup, but kinda don't want to keep it up to date.
As I saw on github, the work on saving session is progressing, but still some time away
Disregard that! It appears that support has landed 4 days ago. Woooo!
Haha wanted to say that but saw your last line 😉
I love your tamper 😇
The force tamper! Quite an expensive tool but I love it!
I love tmux-sessionizer too much to switch. Is there some similar session switcher+resurrect for zellij?
Just came out! I haven’t had time to review myself but it’s available
👀@@devopstoolbox
You tell here that you switched to zellij from tmux. In your previous video, you mentioned how you missed the tmux-resurrect plugin. Did you find a solution to replace it ?
Sadly enough, I went back to Tmux for this exact reason :(
I am testing a new layout for Zellij including a plugin that should be a resurrect alternative. When it's ready I'll share the results :)
@@devopstoolbox Thanks for the swift answer.
I miss 'leader w'
What were you using it for?
@@devopstoolbox it's the window switcher. I think it's stock key in tmux.
@@SebastianSipos hmm it’s my window mapping for vim. Tmux for me is all mapped out through ctrl+A
Anyway I’m in touch with Zellij and they’re listening and testing a new layout. Updates coming soon!
@@devopstoolbox in tmux if you hit leader (default ctrl+b) -> w, you get a tree of windows and panes that you can navigate and select.
Man, you can just hit "ctrl hjkl" to move around without having to enter any mode
So you didn't have to do these rebindings
Hey, being an HHKB + VIM users my Ctrl + HJKL are bound to arrow keys from day 1 :)
Not an option for me. It's mapped in my OS settings and theses are essentially my arrows everywhere... I know many do the same so that solution doesn't work for me. I like solutions like these to come with "reasonable" mappings to not override common practices like these
Ahh so that's why you didn't mention it!
Yeah zellij could come up with 1 or 2 extra configs that use less keybindings or use less ctrl/alt
@@luccahuguet My ultimate goal is to actually integrate it (or decide not to) into my daily workflow but only after either perfecting every aspect or realizing it's not going to work ... still processing :)
makign this behave like tmux ? hehehe wtf