Crates.io | zellij-runner |
lib.rs | zellij-runner |
version | 0.4.0 |
source | src |
created_at | 2023-02-25 15:32:37.294469 |
updated_at | 2024-04-11 14:52:37.493684 |
description | Session runner/switcher for Zellij |
homepage | |
repository | https://github.com/alex35mil/dotfiles |
max_upload_size | |
id | 794392 |
size | 178,662 |
Ad-hoc replacement of Zellij session switcher (which doesn't exist yet).
cargo install zellij-runner
# run switcher in interactive mode
zellij-runner
# create/connect to specified session
zellij-runner my-session
# create session with specified layout
zellij-runner my-session my-layout
To exit the runner, hit Esc
on session selector screen, or Ctrl-C
on any screen.
The runner can include layout selector when creating a new session. To activate it, set an environment variable with a path to the layouts folder:
ZELLIJ_RUNNER_LAYOUTS_DIR=.config/zellij/layouts
To show a banner, provide a path to the directory with ASCII art.
ZELLIJ_RUNNER_BANNERS_DIR=.config/zellij/banners
Each file with ASCII art must have .banner
extension.
Runner would pick a random banner each time you switch sessions.
To optimize autocompletion when switching working dir, set the following environment variables:
# directory with the projects, relative to the HOME dir
ZELLIJ_RUNNER_ROOT_DIR=Projects
# switcher already respects gitignore, but it's still useful in case there's no git
ZELLIJ_RUNNER_IGNORE_DIRS=node_modules,target
# traverse dirs 3 level max from ZELLIJ_RUNNER_ROOT_DIR
ZELLIJ_RUNNER_MAX_DIRS_DEPTH=3