njhlai / oneliner

A one-line status bar plugin for Zellij

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

oneliner

About

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.

Requirements

Usage

Building from source

To build from source, clone this repository, and then run:

# Build the plugin
cargo build --release --locked

Install

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]

Setup

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.

Testing in dev mode

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.

About

A one-line status bar plugin for Zellij


Languages

Language:Rust 100.0%