Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin permissions #4056

Open
technologicalsingularity opened this issue Mar 11, 2025 · 3 comments
Open

Plugin permissions #4056

technologicalsingularity opened this issue Mar 11, 2025 · 3 comments

Comments

@technologicalsingularity

Hi! On any debian I use zellij-cb plugin - it asks permissions Allow [y/n]. On debian 11 this message disappear, but on debian 13 not. Why ? How to set plugins permission for plugin in kdl config ? Why alacritty always asks permissions for this plugin (I start alacritty with zellij at startup) ?

@technologicalsingularity
Copy link
Author

zellij config:

keybinds clear-defaults=true {
    locked {
        bind "Alt q" { Quit; }
        bind "Alt h" { MoveFocusOrTab "left"; }
        bind "Alt l" { MoveFocusOrTab "right"; }
        bind "Alt j" { MoveFocus "down"; }
        bind "Alt k" { MoveFocus "up"; }
        bind "Alt n" { NewTab; }
        bind "Alt c" { CloseTab; }
        bind "Alt r" { SwitchToMode "renametab"; TabNameInput 0; }
        bind "Alt 1" { GoToTab 1; }
        bind "Alt 2" { GoToTab 2; }
        bind "Alt 3" { GoToTab 3; }
        bind "Alt 4" { GoToTab 4; }
        bind "Alt 5" { GoToTab 5; }
        bind "Alt 6" { GoToTab 6; }
        bind "Alt 7" { GoToTab 7; }
        bind "Alt 8" { GoToTab 8; }
        bind "Alt 9" { GoToTab 9; }
    }
    renametab {
        bind "Ctrl c" "Esc" { UndoRenameTab; SwitchToMode "locked"; }
        bind "Enter" { SwitchToMode "locked"; }
    }
}

simplified_ui true

pane_frames false

default_mode "locked"

copy_command "xclip -selection clipboard"
copy_clipboard "primary"
copy_on_select true

plugins {
    plugin name="zellij-cb" {
        fs "read" "write"
        net "localhost"
        zellij "session" "pane"
    }
}

@technologicalsingularity
Copy link
Author

layout.kdl:

layout {
    tab

    default_tab_template {
        children
        pane size=1 borderless=true {
            plugin location="file:/home/m/.config/zellij/plugins/zellij-cb.wasm"
        }
    }
}

@Zykino
Copy link
Contributor

Zykino commented Mar 12, 2025

If you have an issue with a plugin, this should be reported there 😅 https://github.com/ndavd/zellij-cb

I think they miss should_render = true in this block (if you want to directly do a PR instead of an issue… once you have tested it):
https://github.com/ndavd/zellij-cb/blob/c82517e112ee6ab30849922901d911c4104e5763/src/main.rs#L290

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants