Ctrl+s
j/k
Scroll line down / up
Arrows also work.
Ctrl+s
d
/
u
Half page down / up
Ctrl+s
Ctrl+f
/
Ctrl+b
Page down / up
PageDown and PageUp work too.
Ctrl+s
s
Search scrollback
Type the term, press Enter, then n / p.
Ctrl+s
n
/
p
Next / previous match
Only after a search was entered.
Ctrl+s
c
Copy output of last command
Uses prompt marks; works only in shells that emit them.
Ctrl+s
e
Edit scrollback in $EDITOR
Ctrl+s
Ctrl+c
Jump to bottom, leave mode
Ctrl+s
[
/
]
Previous / next prompt
Ctrl+s
m
Select command at position
Ctrl+s
s
Enter
c
/
w
/
o
Search option: case / wrap / whole word
After entering a term, toggle in search mode.
Sessions
zellij
Start a new session
zellij -s <name>
Start a named session
zellij a <name>
Attach to a session
With only one session running the name can be left out.
Ctrl+o
d
Detach
Programs keep running.
zellij a -c <name>
Attach, or create if missing
Good for a shell alias.
Ctrl+o
w
Session manager
Switch, create or kill sessions in a floating list.
Ctrl+q
Quit Zellij (ends the session)
zellij k <name>
Kill a session
zellij ka
Kill all sessions (asks first)
zellij a -b -c <name> -- <cmd>
Create detached with a first command
zellij d <name>
Delete a session (incl. saved copy)
Exited sessions stay listed as resurrectable until deleted.
CLI Control
zellij run -- <cmd>
Run command in a new pane
Add -c to close the pane when the command ends.
zellij edit <file>
Open file in $EDITOR pane
zellij action new-tab
Create a tab from outside
zellij action dump-screen --path <file>
Save pane contents to a file
zellij action write-chars "<text>"
Type text into the focused pane
zellij action rename-session <name>
Rename the session
zellij setup --dump-config
Print the default config
zellij setup --check
Check config and paths
zellij -l <layout>
Start with a layout
Inside a session this adds the layout as new tabs.