diff options
| author | Aram Drevekenin <aram@poor.dev> | 2024-07-17 16:08:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-17 16:08:31 +0200 |
| commit | 84ff29dd024c73e94f3e65d56d907ae903fe3752 (patch) | |
| tree | b3f01370b3b1af71f018eeb27a1437b75e959721 /zellij-utils/src/plugin_api/plugin_command.rs | |
| parent | docs(changelog): scroll region fix (diff) | |
| download | sl0ppij-84ff29dd024c73e94f3e65d56d907ae903fe3752.tar.gz sl0ppij-84ff29dd024c73e94f3e65d56d907ae903fe3752.tar.xz sl0ppij-84ff29dd024c73e94f3e65d56d907ae903fe3752.zip | |
feat(ui): configuration screen + configure non-colliding keys at runtime (#3502)
* rebind => reconfigure
* persist keybinds and mode info to new tabs
* add configuration plugin
* make tests pass
* remove warnings
* style(fmt): rustfmt
Diffstat (limited to 'zellij-utils/src/plugin_api/plugin_command.rs')
| -rw-r--r-- | zellij-utils/src/plugin_api/plugin_command.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/zellij-utils/src/plugin_api/plugin_command.rs b/zellij-utils/src/plugin_api/plugin_command.rs index aeafc1d4..a6514b1b 100644 --- a/zellij-utils/src/plugin_api/plugin_command.rs +++ b/zellij-utils/src/plugin_api/plugin_command.rs @@ -888,11 +888,11 @@ impl TryFrom<ProtobufPluginCommand> for PluginCommand { }, _ => Err("Mismatched payload for NewTabsWithLayoutInfo"), }, - Some(CommandName::RebindKeys) => match protobuf_plugin_command.payload { - Some(Payload::RebindKeysPayload(rebind_keys_payload)) => { - Ok(PluginCommand::RebindKeys(rebind_keys_payload)) + Some(CommandName::Reconfigure) => match protobuf_plugin_command.payload { + Some(Payload::ReconfigurePayload(reconfigure_payload)) => { + Ok(PluginCommand::Reconfigure(reconfigure_payload)) }, - _ => Err("Mismatched payload for RebindKeys"), + _ => Err("Mismatched payload for Reconfigure"), }, None => Err("Unrecognized plugin command"), } @@ -1426,9 +1426,9 @@ impl TryFrom<PluginCommand> for ProtobufPluginCommand { )), }) }, - PluginCommand::RebindKeys(rebind_keys_payload) => Ok(ProtobufPluginCommand { - name: CommandName::RebindKeys as i32, - payload: Some(Payload::RebindKeysPayload(rebind_keys_payload)), + PluginCommand::Reconfigure(reconfigure_payload) => Ok(ProtobufPluginCommand { + name: CommandName::Reconfigure as i32, + payload: Some(Payload::ReconfigurePayload(reconfigure_payload)), }), } } |
