zellij-org / zellij

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

Accept bindings to key functions bigger than F12 #3414

Open GCBallesteros opened 3 weeks ago

GCBallesteros commented 3 weeks ago

As it currently stands any attempt to bind a function key with number bigger than 12 results in the following error message:

  × Failed to parse Zellij configuration
   ╭─[/home/guillem/.config/zellij/config.kdl:4:1]
 5 │         bind "F13" {GoToNextTab;}
   ·         ────────────┬────────────
   ·                     ╰── Invalid key: 'F13'
 6 │     }
   ╰────

I have a programmable keyboard that can go up to F24. I usually use these for triggering program specific functionality. Would it be feasible to allow function keys beyond F12?

ryanramage commented 1 week ago

just hit this myself.

cristiand391 commented 1 week ago

I don't have a keyboard to test it but seems the kitty keyboard protocol would fix this:

https://github.com/zellij-org/zellij/pull/3383 https://sw.kovidgoyal.net/kitty/keyboard-protocol/#functional

GCBallesteros commented 1 week ago

It looks like termwiz does support function keys up to 24