zellij-org / zellij

A terminal workspace with batteries included
https://zellij.dev
MIT License
19.42k stars 611 forks source link

Keybinds don't work in foot term on hyprland when kitty protocol is enabled #3390

Open SecretPocketCat opened 1 month ago

SecretPocketCat commented 1 month ago

2. Issues with the Zellij UI / behavior / crash

Issue description

Zellij keybinds stopped working in foot on hyprland when the kitty protocol is enabled.
The layout provided below does not create a new tab on Ctrl n or close on Alt c ^N & ^[c are printed to the pane instead.

It works on KDE. It also works with the kitty protocol disabled support_kitty_keyboard_protocol false. It also works fine in allacrity both on KDE and hyprland.

Minimal reproduction

Layout

layout {
    tab_template name="log" {
        pane {
            children
            pane name="log" {
                command "tail"
                args "/tmp/zellij-1000/zellij-log/zellij.log" "-F"
            }
        }
        pane size=1 borderless=true {
            plugin location="tab-bar"
        }
    }

    log name="Keybind test" focus=true
}  

keybinds {
    shared {
        bind "Alt c" { Quit; }
        bind "Ctrl n" { NewPane; }
    }
}

Other relevant information

zellij -V
zellij 0.41.0

More specifically I'm on 56baf0b13dfc177a095ae9b3267fe531d4453099

uname -av
Linux archrig 6.8.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 02 May 2024 17:49:46 +0000 x86_64 GNU/Linux
foot -v
foot version: 1.17.2 +pgo +ime +graphemes -assertions
SecretPocketCat commented 1 month ago

Just noticed this doesn't happen on KDE, only on hyprland. Not sure it it's a zellij issue, so feel free to close it if that's the case.