add name to $env.config.keybindings (#14159)

# Description

This PR adds the `name` column back to keybindings.


This may be considered a hack since the reedline keybinding has no spot
for name, but it seems to work.
This commit is contained in:
Darren Schroeder
2024-10-23 12:23:41 -05:00
committed by GitHub
parent ae54d05930
commit 3a685049da
2 changed files with 5 additions and 0 deletions

View File

@ -5,6 +5,7 @@ use crate::{engine::Closure, FromValue};
/// Definition of a parsed keybinding from the config object
#[derive(Clone, Debug, FromValue, IntoValue, Serialize, Deserialize)]
pub struct ParsedKeybinding {
pub name: Option<Value>,
pub modifier: Value,
pub keycode: Value,
pub event: Value,