Expand description
Query and control Zellij sessions and panes via the CLI.
Thin wrappers around zellij subcommands for session management, pane control, focus,
and text injection.
Structs§
- Session
- A Zellij session with its plain name and ANSI-formatted display string.
Enums§
- Direction
- Cardinal direction for pane operations.
Constants§
- BIN 🔒
Functions§
- action
- Runs
zellij action <args…>. - attach_
session - Attaches to a Zellij session by name.
- delete_
session - Deletes an exited (resurrectable) Zellij session by name.
- edit
- Opens
$EDITORonpathin a new pane in the given direction. - focused_
pane_ command - Returns the running command of the currently focused pane by parsing
zellij action list-clients. - forward
- Forwards arbitrary arguments to
zellijwith inherited stdio. - help
- Prints
zellij --helpdirectly to the terminal, preserving ANSI colors. - is_
active - Returns
truewhen the process is running inside a Zellij session. - kill_
session - Kills running Zellij session by name.
- list_
sessions - Returns all running Zellij sessions as
(name, display)pairs. - move_
focus - Moves focus to the pane in the given direction.
- new_
pane - Opens a new pane running
commandin the given direction. - new_
session_ with_ layout - Creates a new Zellij session with the given layout and attaches to it.
- pane_
count - Returns the number of panes in the current tab.
- resize_
increase - Calls
zellij action resize increase <direction>the given number of times. - run_
interactive 🔒 - Runs a
Commandwith inherited stdio so the child process can interact with the terminal directly (preserving ANSI colors, TTY detection, and interactivity). - write_
byte - Sends a raw byte (e.g.
27for ESC) to the focused pane. - write_
chars - Types a string into the focused pane as if the user typed it.