diff options
| author | Aram Drevekenin <aram@poor.dev> | 2024-10-15 17:27:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-15 17:27:44 +0200 |
| commit | 0c9d72c51e451d4b0ff91e0fa1495187c59a48be (patch) | |
| tree | 56d307d0f6a32caab7f664bc4a6b049de48137fd /zellij-utils/src/plugin_api/plugin_command.proto | |
| parent | docs(changelog): reload config flag fix (diff) | |
| download | sl0ppij-0c9d72c51e451d4b0ff91e0fa1495187c59a48be.tar.gz sl0ppij-0c9d72c51e451d4b0ff91e0fa1495187c59a48be.tar.xz sl0ppij-0c9d72c51e451d4b0ff91e0fa1495187c59a48be.zip | |
feat(plugins): rebind keys api (#3680)
* feat(plugins): add API to explicitly unbind/rebind specific keys in specific modes
* style(fmt): rustfmt
Diffstat (limited to 'zellij-utils/src/plugin_api/plugin_command.proto')
| -rw-r--r-- | zellij-utils/src/plugin_api/plugin_command.proto | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/zellij-utils/src/plugin_api/plugin_command.proto b/zellij-utils/src/plugin_api/plugin_command.proto index adb91e53..29ebca67 100644 --- a/zellij-utils/src/plugin_api/plugin_command.proto +++ b/zellij-utils/src/plugin_api/plugin_command.proto @@ -7,6 +7,8 @@ import "command.proto"; import "message.proto"; import "resize.proto"; import "plugin_permission.proto"; +import "input_mode.proto"; +import "key.proto"; package api.plugin_command; @@ -123,6 +125,7 @@ enum CommandName { BreakPanesToTabWithIndex = 109; ReloadPlugin = 110; LoadNewPlugin = 111; + RebindKeys = 112; } message PluginCommand { @@ -205,9 +208,27 @@ message PluginCommand { BreakPanesToTabWithIndexPayload break_panes_to_tab_with_index_payload = 85; ReloadPluginPayload reload_plugin_payload = 86; LoadNewPluginPayload load_new_plugin_payload = 87; + RebindKeysPayload rebind_keys_payload = 88; } } +message RebindKeysPayload { + repeated KeyToRebind keys_to_rebind = 1; + repeated KeyToUnbind keys_to_unbind = 2; + bool write_config_to_disk = 3; +} + +message KeyToRebind { + input_mode.InputMode input_mode = 1; + key.Key key = 2; + repeated action.Action actions = 3; +} + +message KeyToUnbind { + input_mode.InputMode input_mode = 1; + key.Key key = 2; +} + message LoadNewPluginPayload { string plugin_url = 1; repeated ContextItem plugin_config = 2; |
