hiasr / vim-zellij-navigator

76 stars 4 forks source link

After changing the config, pressing the key makes zellij crash and get "Received empty message from server" error message #13

Closed pencilcheck closed 5 days ago

pencilcheck commented 5 days ago

zellij --version zellij 0.40.1

pencilcheck commented 5 days ago

I fixed it by changing the config to use the file downlaoded instead of the URL. I think github is blocking direct download/access to the release file.

Please update the README as well thanks:

    shared_except "locked" {
        bind "Ctrl h" {
            MessagePlugin "file:/Users/penn/.config/zellij/plugins/vim-zellij-navigator.wasm" {
                name "move_focus_or_tab";
                payload "left";

                // Plugin Configuration
                move_mod "ctrl"; // Optional, should be added on every command if you want to use it
                resize_mod "alt"; // Optional, should be added on every command if you want to use it
            };
        }

        bind "Ctrl j" {
            MessagePlugin "file:/Users/penn/.config/zellij/plugins/vim-zellij-navigator.wasm" {
                name "move_focus";
                payload "down";

                move_mod "ctrl";
                resize_mod "alt";
            };
        }

        bind "Ctrl k" {
            MessagePlugin "file:/Users/penn/.config/zellij/plugins/vim-zellij-navigator.wasm" {
                name "move_focus";
                payload "up";

                move_mod "ctrl";
                resize_mod "alt";
            };
        }

        bind "Ctrl l" {
            MessagePlugin "file:/Users/penn/.config/zellij/plugins/vim-zellij-navigator.wasm" {
                name "move_focus_or_tab";
                payload "right";

                move_mod "ctrl";
                resize_mod "alt";
            };
        }
    }