helix-mirror/helix-view
Michael Davis 271c32f2e6
Support bindings with the Super (Cmd/Win/Meta) modifier (#6592)
Terminals which support the enhanced keyboard protocol send events for
keys pressed with the Super modifier (Windows/Linux key or the Command
key). The only changes that are needed to support this in Helix are:

* Mapping the modifier from crossterm's KeyModifiers to Helix's
  KeyModifiers.
* Representing and parsing the modifier from the KeyEvent text
  representation.
* Documenting the ability to remap it.

When writing keybindings, use 'Meta-', 'Cmd-' or 'Win-' which are all
synonymous. For example:

    [keys.normal]
    Cmd-s = ":write"

will trigger for the Windows or Linux keys and the Command key plus 's'.
2024-12-08 12:35:14 +09:00
..
src Support bindings with the Super (Cmd/Win/Meta) modifier (#6592) 2024-12-08 12:35:14 +09:00
tests/encoding Re-vendor encoding_rs test data 2024-11-13 15:30:17 +09:00
Cargo.toml build(deps): bump the rust-dependencies group with 4 updates (#12129) 2024-11-25 18:06:54 -06:00