I found the default keybinds were conflicting with micro
and other editors so here is my config if you want it. https://gist.githubusercontent.com/HarveyDevel/72c50b235e41be83c9923e6928360587/raw/a3f50ed80350401a755aef863c1be6193b6ebb5d/config.kdl You'll need to save that as config.kdl to ~/.config/zellij/ (I don't think the directory exists by default).
I basically changed everything to use an alt
modifier instead of ctrl
and make zellij
use compact mode by default. Zellij
also creates a new session every time it starts by default, I hate this so I made it so it won't keep doing that resulting in stale sessions sitting in the background.
Useful modified keybinds:
alt+s
to enter / exit scroll mode.
alt+p
(release the keys) press n
for a new pane.
-alt+left
or right
arrow to switch between panes.
This next section is great when you are running something and need to switch computers. You can detach an active session, shell in and re-attach.
alt+o
(release keys) press d
to detach the current zellij session, if this is the only session it'll exit the terminal.
zellij ls
to list sessions available
zellij attach session-name
to attach the session you detached. Sadly this results in a nested UI if you are already in a zellij session, I don't have a solution for this yet.
- Once done with that session
exit
You can add this to your alacritty.toml if you want zellij to always start when you launch alacritty.
[terminal.shell]
program = "zellij"