zellij-runner

Ad-hoc replacement of Zellij session switcher (which doesn't exist yet).

screen

Installation

sh cargo install zellij-runner

Usage

```sh

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 at any point.

Configuration

Layouts

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:

sh ZELLIJ_RUNNER_LAYOUTS_DIR=.config/zellij/layouts

Banner

To show a banner, provide a path to the directory with ASCII art.

sh 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.

Paths autocompletion

To optimize autocompletion when switching working dir, set the following environment variables:

```sh

directory with the projects, relative to the HOME dir

ZELLIJRUNNERROOT_DIR=Projects

switcher already respects gitignore, but it's still useful in case there's no git

ZELLIJRUNNERIGNOREDIRS=nodemodules,target

traverse dirs 3 level max from ZELLIJRUNNERROOT_DIR

ZELLIJRUNNERMAXDIRSDEPTH=3 ```