nushell/crates/nu-cli/src
replcat 151767a5e3
Support kitty key modifiers in keybindings (#13906)
# Description
hi hi, this makes the parsing of modifier key combos in config more
general, and adds support for additional kitty keyboard protocol
modifiers. It seems that support for [kitty
keys](https://sw.kovidgoyal.net/kitty/keyboard-protocol) had already
been added to nushell in https://github.com/nushell/nushell/pull/10540,
and this was the only missing piece to making them available in
keybindings.

# User-Facing Changes
- keybindings in config can include the super, hyper and meta modifiers
(e.g. `modifier: super`, `modifier: shift_super`, etc.), and these
modifiers will work in supporting terminals (kitty, foot, wezterm,
alacritty...)
- all permutations of snake_cased modifier combinations now behave
equivalently for the purpose of describing keybindings in config (e.g.
`control_alt_shift` was previously supported where `shift_control_alt`
was a config error — now they're the same)

# Tests
None of this looks to be tested at the moment. I only found a smoke test
under the nu-cli crate, and I couldn't break tests elsewhere by stuffing
around with modifier handling. Works on my machine, though! 🌈
2024-09-24 15:37:04 +02:00
..
commands Use IntoValue in config code (#13751) 2024-09-05 09:44:23 +02:00
completions Fix try not working with let, etc. (#13885) 2024-09-23 06:44:25 -05:00
menus Fix try not working with let, etc. (#13885) 2024-09-23 06:44:25 -05:00
config_files.rs Error on non-zero exit statuses (#13515) 2024-09-07 06:44:26 +00:00
eval_cmds.rs Error on non-zero exit statuses (#13515) 2024-09-07 06:44:26 +00:00
eval_file.rs Error on non-zero exit statuses (#13515) 2024-09-07 06:44:26 +00:00
lib.rs Add top-level crate documentation/READMEs (#12907) 2024-07-14 10:10:41 +02:00
nu_highlight.rs Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
print.rs Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
prompt.rs cleanup osc calls for shell_integration (#12810) 2024-05-08 13:34:04 -05:00
prompt_update.rs Error on non-zero exit statuses (#13515) 2024-09-07 06:44:26 +00:00
reedline_config.rs Support kitty key modifiers in keybindings (#13906) 2024-09-24 15:37:04 +02:00
repl.rs Make IR the default evaluator (#13718) 2024-09-15 14:54:38 -07:00
syntax_highlight.rs Overhaul $in expressions (#13357) 2024-07-17 16:02:42 -05:00
util.rs Error on non-zero exit statuses (#13515) 2024-09-07 06:44:26 +00:00
validation.rs Remove old alias implementation (#8797) 2023-04-07 21:09:38 +03:00