oneliner is a Zellij plugin which is a modified one-line version of Zellij's default status-bar plugin. oneliner combines the firstline
and secondline
output of the default status-bar into one line.
This is a soft fork of Zellij's default status-bar plugin.
To build from source, clone this repository, and then run:
# Build the plugin
cargo build --release --locked
To install the plugin, run:
# Get the plugin directory from Zellij's config
zellij setup --check
# Copy the plugin over to the [PLUGIN DIR] specified above
cp /path/to/repo/target/wasm32-wasi/release/oneliner.wasm [PLUGIN DIR]
To use the plugin, first add it to the list of plugins in your Zellij config:
plugins {
...
oneliner { path "oneliner"; }
...
}
Then, modify your layout appropriately by adding:
layout {
...
pane borderless=true size=1 {
plugin location="zellij:oneliner"
}
...
}
Grant oneliner
the ReadApplicationState
permission when prompted, which will only be asked during the first run of oneliner
.
To test the plugin in dev mode:
# Build the plugin in dev mode
cargo build
# Running in Zellij with provided layout for testing
zellij -l plugin.yaml
Grant oneliner
the ReadApplicationState
permission when prompted as above.