Skip to content

How to draw a divider after a pane? #3862

Answered by JohnDowson
azzamsa asked this question in Q&A
Discussion options

You must be logged in to vote

A plugin to do this would be trivial:

use zellij_tile::prelude::*;
use std::collections::BTreeMap;

#[derive(Default)]
struct State;

register_plugin!(State);

impl ZellijPlugin for State {
    fn load(&mut self, _: BTreeMap<String, String>) {}
    fn update(&mut self, _: Event) -> bool {
        false
    }
    fn pipe(&mut self, _: PipeMessage) -> bool {
        false
    }
    fn render(&mut self, _: usize, cols: usize) {
        println!("{}", "─".repeat(cols));
    }
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by azzamsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants