zellij/zellij-utils
Bradford Hovinen 312817fcf6
fix(config): add support for Ctrl and Alt modifiers on function keys in keybindings (#3179)
Previously, it was not possible to define keybindings with a modifier
and a function key. The `Key` enum only supported combinging the Ctrl
and Alt modifiers with letters. This is somewhat limiting: I would like
to make the Zellij keybindings more "distant" than those used in the
programs I use from within Zelilj, so that Zellij does not intefere with
those programs. Thus I would like to move some of the keybindings from
Ctrl+<character> to Ctrl+<function key>.

This change adds:

  * support for function keys with the Ctrl and Alt modifiers in the
    `Key` enum,
  * support for parsing such keybindings from the configuration file,
  * support for such keybindings in the protobuf which communicates the
    keybindings to plugins, and
  * support for these keybindings in the plugin API.

This is tested by modifying one of the e2e tests to include an example
of such keybindings. This verifies that the configuration is correctly
parsed, communicated with the plugin, and rendered.
2024-03-25 15:04:38 +01:00
..
assets feat(cli): add run/edit in-place functions (#3038) 2024-03-25 12:31:02 +01:00
src fix(config): add support for Ctrl and Alt modifiers on function keys in keybindings (#3179) 2024-03-25 15:04:38 +01:00
build.rs xtask/pipeline: Fix publish task (#2711) 2023-08-28 06:24:27 +00:00
Cargo.toml perf: improve plugin download & load feature (#3001) 2023-12-13 01:21:32 +09:00