New Zellij Features: Swap Layouts and Stacked Panes

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024

Комментарии • 81

  • @ElijahManor
    @ElijahManor  Год назад +2

    If you liked this video, please like and subscribe for further content.
    You can also join as a member of this channel for special perks youtube.com/@elijahmanor/join
    If you'd like to connect on social media, you can find me on Twitter twitter.com/elijahmanor and Mastodon hachyderm.io/@elijahmanor

  • @AmexL
    @AmexL Год назад +13

    Wow this is nice. I could never get into Tmux, but I understand its utility and power. However, Zellij has a way friendlier user interface and I'm already taking to it really well. Thanks for highlighting this tool, hopefully you'll do more vids on it.

    • @ElijahManor
      @ElijahManor  Год назад +2

      Glad it was helpful! I've only picked up on it in the last several weeks. I've been a big tmux user for years, but have been enjoying zellij. Once you get used to the binding, you can reduce the UI so it's more streamlined zellij.dev/documentation/faq.html#the-ui-takes-up-too-much-space-what-can-i-do-about-it

    • @AmexL
      @AmexL Год назад +1

      @@ElijahManor oh nice I’ll look into that. Thanks again.

  • @henrikstanleymortensen4295
    @henrikstanleymortensen4295 Год назад +2

    After watching this video, it suddenly occurred to me that I have been going through your back catalogue of content this past week and been enjoying it immensely. So I figured I better like and subscribe :P
    Thank you for the effort you put into these Elijah, it is much appreciated!

    • @ElijahManor
      @ElijahManor  Год назад +1

      Wonderful! Thank you for watching and being a repeat visitor, yay! Glad you've enjoyed the content and have found some value in it. Currently working on a Nerd Font video, which I honestly thought would be super simple and quick, but the more I dug into it... wow, there are a lot of nitty gritty details based on the approach used, your terminal emulator choice, and operating system. So, I'm trying to cover those. I have other ideas and topics planned too. Have a great day!

    • @henrikstanleymortensen4295
      @henrikstanleymortensen4295 Год назад

      @@ElijahManor That is a great topic with a lot of things to cover. Tech Craft did a great video on Fonts in general that you could either use for inspiration or link to as someone else having covered that part on fonts and focus on other parts of it :)
      ruclips.net/video/yKjpUCCyHu8/видео.html

    • @ElijahManor
      @ElijahManor  Год назад +1

      @@henrikstanleymortensen4295 that's great, thanks for sharing! I actually don't cover most of that... so that is a good external resource. i do agree with his font choice (as that is what i show in my video), but i cover different concerns

  • @isaacvicente
    @isaacvicente Год назад +2

    Pleease make more videos like that. I discovered Zellij recently and I really liked it, I just need to get the things setup and start using it -- it would be very helpful anyone that's just starting using Zellij as same as me.

    • @ElijahManor
      @ElijahManor  Год назад +1

      Good to know! Yeah, there is a lot you can do and I love how it's such an active project. Thanks for watching and the interest in more zellij material. Aram has been doing a great job moving it along and adding great features.

  • @xtnctr
    @xtnctr Год назад +1

    Fantastic. I like the pace of yours videos, your conciseness. The content itself. 10/10.

    • @ElijahManor
      @ElijahManor  Год назад

      Glad you like the pace. I try to keep things tight and to the point.

  • @RobertMcGovernTarasis
    @RobertMcGovernTarasis 3 месяца назад

    So useful, thank you! Like I heard about Zellij via a different YTuber, but was left going "what is that". And youve shown me things the docs don't really highlight.

  • @ErmandDurro
    @ErmandDurro Год назад +2

    Amazing. Thanks for this video. Very useful. I read a bit about Zellij a couple of weeks ago, but didn't think it would be worthy to switch from tmux to it. Now with this vidoe, I kinda wanna try it 😄

    • @ElijahManor
      @ElijahManor  Год назад +1

      Glad it was helpful! Yeah, I've seen it popped up in my socials recently and thought I'd give it a try. I've been impressed thus far and it feels like an active project that keeps growing and getting better. I've been a big tmux user the last 2 years, but I'm enjoying zellij right now

  • @murtadha96
    @murtadha96 Год назад +2

    I'd love a full beginner tutorial for zellij. I'm absolutely going to switch to it from tmux whenever I have the time to do so!

    • @ElijahManor
      @ElijahManor  Год назад +1

      Zellij is pretty awesome. I have a long backlog of things I want to create. I'll add that to the list, but not sure when/if it'll get done.

  • @sockthedev4904
    @sockthedev4904 Год назад +2

    So frikken cool. I gave up on tmux, and started using embedded terminals within my Neovim, but that has some downsides. Totally gonna try this out! Thanks for video 💜

    • @sockthedev4904
      @sockthedev4904 Год назад

      1 minute in and already in 💜

    • @ElijahManor
      @ElijahManor  Год назад

      Great to hear! You also might want to check the 3rd FAQ in this doc I've been putting together to address some concerns you might run into when using Neovim gist.github.com/elijahmanor/19832f408c91fa9307a2c0e34cd4a632

    • @sockthedev4904
      @sockthedev4904 Год назад

      @@ElijahManor Ah man, I wish I came back here to see this! I went through this pain, and managed to figure it out myself luckily. But that could have saved me an hour. 😂 The lock strategy is working well. It's not ideal I agree, but the interface is very explicit about the state at least. I'm gonna leave zellij in the default layout mode whilst I get a handle on the keys, but keen to switch to compact layout as soon as I have the muscle memory formed.

    • @ElijahManor
      @ElijahManor  Год назад

      @@sockthedev4904 glad you are enjoy it. sorry you spun your wheels on that. i'm playing around with other ideas of (different keymaps or layouts) to make working with neovim easier. but the lock works in a pinch. have a great day and thanks for coming back :)

  • @bronk9247
    @bronk9247 Год назад +2

    Love this video, did not know about stacked panes. Have you considered doing a guide on Zellij layouts using KDL? I played around with it and found some strange edge cases (like how to make a new tab with a specific layout) that I could not figure out. Cheers.

    • @ElijahManor
      @ElijahManor  Год назад +1

      Thanks for watching and that you found value in it. I have been playing with layouts and kdl.
      You can create a new tab from the CLI with a different layout like... `zellij action new-tab --layout /path/to/layout_file.kdl` zellij.dev/documentation/layouts.html#applying-a-layout
      Or you can define a custom keybinding to automatically do that...
      ```
      keybinds {
      tab {
      bind "k" { NewTab { name "special"; layout "/path/to/layout_file.kdl"; }; SwitchToMode "Normal"; }
      }
      }
      ```
      Or if you wanted all tabs to have a new layout, then changing the default layout should work zellij.dev/documentation/options.html#default_layout

  • @jenya_hmarko
    @jenya_hmarko Год назад +5

    I am very excited to see Zellij improving!
    However, I don't think it's ready for me - afaik there is no session saving between reboots (though zellij has this feature in the roadmap. And on tmux I use some plugins to enable session saving).
    And also I don't know, how to make keybindings in Zellij, which use prefix key. Over on tmux side I have set my prefix to C-Space, and it's very comfortable.
    Because of these two problems, I guess I will continue to use tmux for now.

    • @ErmandDurro
      @ErmandDurro Год назад +4

      That's a very good point about sessions. That's one of the most used crucial features for me in tmux. I'll definitely give it a try to Zellij, but same as you for day to day usage, I would wait for the sessions to be available

    • @abuumar8794
      @abuumar8794 Год назад +2

      same here. session saving feature in tmux is live saving.

    • @ElijahManor
      @ElijahManor  Год назад +3

      Yes that is on the roadmap zellij.dev/roadmap/ referring to this issue github.com/zellij-org/zellij/issues/575 I'm not sure the timeline of when it will be available.
      As for prefix, AFAIK zellij doesn't have one. It has the idea of modes like Neovim does. However, you can customize the keybindings zellij.dev/documentation/keybindings.html

  • @iatheman
    @iatheman Год назад

    Definitely trying Zellij out after watching this. The video format and explanations are top notch! That's the reason why I decided to switch to lazyvim :)

    • @ElijahManor
      @ElijahManor  Год назад +1

      Hope you enjoy it! If you use Neovim, then you might run into conflicts with some of the keymaps. I've been putting together some FAQs about zellij and I address using Neovim gist.github.com/elijahmanor/19832f408c91fa9307a2c0e34cd4a632

  • @darkarie
    @darkarie Год назад +1

    The main problem that I find with zellij are the keybindings. It seesm to have problems with all the text editors. And another thing that would be nice is a way of making the style more minimal.

    • @ElijahManor
      @ElijahManor  Год назад

      Thanks for the comment! I've created a FAQ of recently questions I've received. There are two items that should address your questions gist.github.com/elijahmanor/19832f408c91fa9307a2c0e34cd4a632 I hope that helps. Thanks for supporting the channel!

    • @darkarie
      @darkarie Год назад +1

      awesome thanks!

  • @youngsinatra2645
    @youngsinatra2645 6 месяцев назад

    Regarding swap layouts, is there a Zellij CLI command/action to swap to a specific named layout? (to bind to a keyboard shortcut)

  • @nsttt
    @nsttt Год назад +1

    I've been trying to get used to zellij but I cannot make it work properly with my macos keys. Usually unable to use the option (alt) keys.

    • @ElijahManor
      @ElijahManor  Год назад +1

      Yeah, without a special leader key (like tmux) the probability of keymaps conflicting with other things on your machine is pretty high. One way is to lock Zelij with ctrl-g but that could become cumbersome. Another way would be to remap the Zellij config to be something else that doesn't conflict with your keys. You might take a look at all of these FAQs I put together with ideas of what you can do gist.github.com/elijahmanor/19832f408c91fa9307a2c0e34cd4a632

  • @ParampalSingh-xu2kj
    @ParampalSingh-xu2kj Год назад +1

    Thanks Elijah for this great content. I recently installed lazyvim. It seems to have conflicting keybindings with zellij. Can you help, based on your experience, to create a lazyvim-zellij workflow ? I would love to use zellij in my day to day activities

    • @ElijahManor
      @ElijahManor  Год назад

      Great question, I tried to answer in this Zellij FAQ that I put together as I'm answering questions from this RUclips thread gist.github.com/elijahmanor/19832f408c91fa9307a2c0e34cd4a632

  • @masynchin
    @masynchin Год назад

    1:36 It doesn't work for me on macOS Alacritty. I toggle left/right option and ], but it just types ‘ to terminal

  • @TheNoirKamui
    @TheNoirKamui 3 месяца назад

    This doesn't work on a custom layout.
    How can I switch between these modes, while having a custom working directory on start?

  • @snobbybumblebee
    @snobbybumblebee 10 месяцев назад

    Alt + ] does not work in kitty although I have "macos_option_as_alt left" in my config and Alt+n, Alt+HJKL work as expected.

  • @user-xd5gd4pc9h
    @user-xd5gd4pc9h Год назад +1

    Good video. I am moving to zellij from tmux. I meet a problem, How to store and restore zellij session? Thx!

    • @ElijahManor
      @ElijahManor  Год назад

      If you are asking about restoring a previous session after a computer restart (for example) there isn't a way to do that yet... see github.com/zellij-org/zellij/issues/575
      However, you can detach from a session and resume it (as long as it is still running in the background). Here are some commands to help you with that... zellij.dev/documentation/commands.html

    • @user-xd5gd4pc9h
      @user-xd5gd4pc9h Год назад +1

      @@ElijahManor Yes, you are right.

  • @GustavoMsTrashCan
    @GustavoMsTrashCan Год назад +1

    Is there a way to create a session -and- run a command in said session outside of zellij? That is (pretty much) the only thing stopping me from fully switching from tmux to zellij. Thanks in advance, and nice video.

    • @ElijahManor
      @ElijahManor  Год назад +1

      Are. you asking that you want to create a new session that is detached and run a command inside of it?
      From what I know thus far, I don't think that is possible. Here are the primary sub-commands listed zellij.dev/documentation/commands.html
      However, if you are asking... can you run a command inside an existing zellij session, then yes..
      zellij run -- tail -f /tmp/my-log-file
      That'll create a new pane that runs that command. Here are docs on the run sub-command zellij.dev/documentation/zellij-run.html
      There are also ways to run action commands zellij.dev/documentation/cli-actions.html
      You might also ask int he discussion tab of the repo github.com/zellij-org/zellij/discussions Looks like someone actually asked a very similar question recently github.com/zellij-org/zellij/discussions/2236

    • @GustavoMsTrashCan
      @GustavoMsTrashCan Год назад +1

      @@ElijahManor A whole new session and running a command inside it -- outside zellij. Just like its possible with "tmux new $command1 ';' split -h $command2 ';' split -v $command3". So I can run several commands inside zellij everytime I boot up my pc, for example. Or use a hotkey that does that and shows me several monitoring-related commands with a single tap. Which is nice for a general use.
      That aside, thanks for chiming in.

    • @ElijahManor
      @ElijahManor  Год назад +1

      I did some digging... I created an FAQ for you (and others) here gist.github.com/elijahmanor/19832f408c91fa9307a2c0e34cd4a632

    • @GustavoMsTrashCan
      @GustavoMsTrashCan Год назад +1

      @@ElijahManor That is a nice faq and all... but it would be nice(r) if this function was implemented inside the zellij command... just like its possible (and much simpler) via the tmux example I used above...
      ...which takes me (only) three words to be executed.

    • @ElijahManor
      @ElijahManor  Год назад +1

      @@GustavoMsTrashCan true, i don't see a way to do that currently (similar CLI only approach). maybe thumbs up the discussion post I referenced in the previous comment with your support and maybe an example of what you do in tmux (with your use case). thanks again for the watch and the interest!

  • @user-gz9mw3yr2x
    @user-gz9mw3yr2x Год назад +1

    Zellij support sixel dayum boehh so sexy

  • @a7kerkh
    @a7kerkh Год назад

    bro how to fix move cursor in position of last snippet in lazyvim after using any snippets when you clicking TAB in input mode

    • @ElijahManor
      @ElijahManor  Год назад

      Is this in relation to zellij in any way or specific to my LazyVim series?
      I'm not exactly sure I'm following the problem. Could you possibly create a private gist with a README.md with more detail. You could even record a screencast with QuickTime (if you are on macOS) and drag/drop the mov video file to the comments.
      Or you could ask on the LazyVim discussion page where many others can respond as well github.com/LazyVim/LazyVim/discussions

  • @berserkin1337
    @berserkin1337 Год назад +1

    can you hide the shortcuts ?

    • @ElijahManor
      @ElijahManor  Год назад +1

      Yup, you can check out the 4th FAQ that I put together gist.github.com/elijahmanor/19832f408c91fa9307a2c0e34cd4a632

  • @SPYFFzero
    @SPYFFzero Год назад +1

    What is your "zr" alias? Thanks!

    • @ElijahManor
      @ElijahManor  Год назад +1

      zr is a zellij alias for zellij run zellij.dev/documentation/controlling-zellij-through-cli.html?highlight=zr#completions

    • @SPYFFzero
      @SPYFFzero Год назад

      @@ElijahManor Thanks!

    • @ElijahManor
      @ElijahManor  Год назад

      @@SPYFFzero no problem!

  • @alecumihnea
    @alecumihnea Год назад +1

    If only it worked on iterm2

    • @ElijahManor
      @ElijahManor  Год назад

      It does ;) Compiling a list of FAQs that might be helpful and I added this one to it gist.github.com/elijahmanor/19832f408c91fa9307a2c0e34cd4a632

    • @alecumihnea
      @alecumihnea Год назад

      @@ElijahManor well there s that but navigating by word doesnt work for me

    • @ElijahManor
      @ElijahManor  Год назад

      Are you referring to navigating by word inside of vim/neovim or using vimode inside of bash/zsh or using native terminal commands?

    • @alecumihnea
      @alecumihnea Год назад

      @@ElijahManor I'm referring to the fact that I am used to go back a word by pressing opt + left arrow for example

  • @livb4139
    @livb4139 Год назад +1

    Did you stop using tmux yourself for this?

    • @ElijahManor
      @ElijahManor  Год назад +3

      Great question! I've decided to give it a go for the past few weeks. I do like tmux, but I kept seeing zellij come up in my social feeds and wanted to kick the tires for a while. I did missing having a way to quickly switch between sessions like tmux (which is a feature coming, but isn't done yet), so I made this script to help me out in the meantime gist.github.com/elijahmanor/a8af9a19e7b12b4bde7fa9b9d4b7037d

    • @sumek83
      @sumek83 Год назад +2

      @@ElijahManor it would be nice to have an episode "selling" zellij to an experienced tmux user. Stacked tabs look and run windows look great, but does it justify learning a new tool? 🤔 float windows - not sure how would I use them

    • @ElijahManor
      @ElijahManor  Год назад

      Yeah, zellij is a much newer project than tmux. They solve a similar problem, but in different ways. For sure, there are pros and cons to each. I was a BIG tmux user for years, but now I'm in the phase of giving zellij an extended trial and have been experimenting with workflows and various ways to extend it. And then it comes down to personal workflows and how devs use something. I do have a tmux video and I've planned out 2 other videos in that series, but I'm currently focused on LazyVim and a series for that. But what you suggest is interesting. If you do use Vim or Neovim then there is a bit of hoops to jump through for that to be a good experience. I've started to put together a FAQ of things I'm finding (from these comments or from personal research) gist.github.com/elijahmanor/19832f408c91fa9307a2c0e34cd4a632 I hope to give back some of this work to the official repo/website

  • @All3me1
    @All3me1 Год назад

    How does cowsay have such nice colours?

    • @ElijahManor
      @ElijahManor  Год назад

      You can pipe the output of coway into a tool called lolcat to get nice colors github.com/busyloop/lolcat

  • @petersandovalmoreno5213
    @petersandovalmoreno5213 Год назад

    Wezterm tutorial?

    • @ElijahManor
      @ElijahManor  Год назад +1

      Do you mean you want a tutorial all about WezTerm or do you mean you'd like to know how to use Zellij with WezTerm? BTW, I do plan to talk about WezTerm briefly in my next video about Nerd Fonts (but it isn't meant to be an overview of WezTerm generaly)

    • @petersandovalmoreno5213
      @petersandovalmoreno5213 Год назад

      @@ElijahManorA full overview of Wezterm

    • @ElijahManor
      @ElijahManor  Год назад

      @@petersandovalmoreno5213 nice! yeah, it is pretty nice!

  • @user-mv4oh8yp1y
    @user-mv4oh8yp1y Год назад +1

    Utimately these panes become pain.

    • @ElijahManor
      @ElijahManor  Год назад

      Depending on how you set them up I can totally agree. In the video I was mostly just showing what is possible. Each person will have their own rhythm and recommended workflow. I tend to like one session per project, then tabs for focused work (like maybe an editor tab, server tab, git tab, etc), then each tab could have some panes. However, with the new stacked pane... I could see me going full-screen on the main left pane and hiding stacked panes on the right. I would imagine each person wold get into their own groove.

  • @sojibrajii
    @sojibrajii Год назад +1

    Hi
    U need attractive RUclips Thumbnail designer for more views?