zellij icon indicating copy to clipboard operation
zellij copied to clipboard

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

Open meepleek opened this issue 1 year ago • 4 comments

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; }
    }
}
  • start foot
  • start zellij in foot using the provided layout
  • press Ctrl n to create a new pane
  • ^[c is instead

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

meepleek avatar May 29 '24 06:05 meepleek

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.

meepleek avatar May 29 '24 06:05 meepleek

I'm encountering the exact same issue under the exact same circumstances.

@SecretPocketCat ¿Which program provides the option to disable the kitty protocol? I would love to continue using Zellij on foot,

SrEstegosaurio avatar Sep 22 '24 22:09 SrEstegosaurio

I'm encountering the exact same issue under the exact same circumstances.

@SecretPocketCat ¿Which program provides the option to disable the kitty protocol? I would love to continue using Zellij on foot,

@SrEstegosaurio Well zellij does, but then certain keybinds won't be supported. See the support_kitty_keyboard_protocol setting. I've switched switched back to wezterm to sidestep the issue. I realise that's probably not much help, sorry about that.

meepleek avatar Sep 23 '24 10:09 meepleek

Any way to reproduce this without spending a day installing a window manager? :)

imsnif avatar Sep 23 '24 16:09 imsnif