dj95 / zjstatus

A configurable statusbar plugin for zellij
MIT License
435 stars 9 forks source link

Enable issue. #1

Closed Joarell closed 1 year ago

Joarell commented 1 year ago

Hi man! I hope you are doing great! Firstly, I would like to thank your efforts on this plugin! So, I try to use, but unfortunately I didn't... Rsrsrsr. As you can see on the image, I just couldn't reach the pane to enable the plugin access. I try to navigate to the pane but no success at all.

Could you please give me some help? I think I'm doing something wrong. Have a nice day! ZJSTATUS

dj95 commented 1 year ago

Hi @Joarell,

first of all thanks for your kind words!

It's a bit tricky with the statusbar and granting permissions. I've introduced a config parameter in v0.2.1, that can be used to enable navigation to the statusbar. It's called first_start "true".

Here's an example:

 pane size=1 borderless=true {
        plugin location="file:target/wasm32-wasi/debug/zjstatus.wasm" {
            format_left  "{mode} #[fg=#89B4FA,bold]{session} {tabs}"
            format_right "{datetime}"
            format_space ""

            first_start                "true"   # this is the important line
    }
}

After the first start the option can be disabled/removed again, but you may need it on updates.

I created a section in the README stating out this problem in the installation, but maybe that's the wrong place or it is written kinda unclear.

Hope the workaround fixes the issue for you.

Joarell commented 1 year ago

Perfect! Now it's working! Thank you for your prompt reply, my friend! I really appreciate your work on this plugin!

Have a great day!