Skip to content

njhlai/oneliner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages