diff options
| author | Aram Drevekenin <aram@poor.dev> | 2025-06-10 17:23:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-10 17:23:46 +0200 |
| commit | 7ef7cd5ecd13974b0f51eec87df164249c294a4c (patch) | |
| tree | 234b3fdc1ad652a45c8aec3c8e957f4b1452f3e6 /zellij-utils/src/plugin_api | |
| parent | feat(ux): improve multiple select (#4221) (diff) | |
| download | sl0ppij-7ef7cd5ecd13974b0f51eec87df164249c294a4c.tar.gz sl0ppij-7ef7cd5ecd13974b0f51eec87df164249c294a4c.tar.xz sl0ppij-7ef7cd5ecd13974b0f51eec87df164249c294a4c.zip | |
feat(ui): add optional tooltip with key hints to the compact bar (#4225)
* initial implementation
* some refactoring
* refactor: separate some concerns and tidy up
* fix: move tooltip to focused tab as needed
* some ux adjustments
* some refactoring
* only show tooltip if we have configured a shortcut key
* add plugin artifacts
* fix tests
* truncate tooltip if it exceeds width
* change config name
* remove comment
* docs(changelog): add PR
Diffstat (limited to 'zellij-utils/src/plugin_api')
| -rw-r--r-- | zellij-utils/src/plugin_api/plugin_command.proto | 1 | ||||
| -rw-r--r-- | zellij-utils/src/plugin_api/plugin_command.rs | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/zellij-utils/src/plugin_api/plugin_command.proto b/zellij-utils/src/plugin_api/plugin_command.proto index 621b5de6..b8b6bad1 100644 --- a/zellij-utils/src/plugin_api/plugin_command.proto +++ b/zellij-utils/src/plugin_api/plugin_command.proto @@ -491,6 +491,7 @@ message MessageToPluginPayload { repeated ContextItem message_args = 5; optional NewPluginArgs new_plugin_args = 6; optional uint32 destination_plugin_id = 7; + optional FloatingPaneCoordinates floating_pane_coordinates = 8; } message NewPluginArgs { diff --git a/zellij-utils/src/plugin_api/plugin_command.rs b/zellij-utils/src/plugin_api/plugin_command.rs index 08a9545e..30a6a03d 100644 --- a/zellij-utils/src/plugin_api/plugin_command.rs +++ b/zellij-utils/src/plugin_api/plugin_command.rs @@ -935,6 +935,7 @@ impl TryFrom<ProtobufPluginCommand> for PluginCommand { message_args, new_plugin_args, destination_plugin_id, + floating_pane_coordinates, })) => { let plugin_config: BTreeMap<String, String> = plugin_config .into_iter() @@ -962,6 +963,8 @@ impl TryFrom<ProtobufPluginCommand> for PluginCommand { }) }), destination_plugin_id, + floating_pane_coordinates: floating_pane_coordinates + .and_then(|f| f.try_into().ok()), })) }, _ => Err("Mismatched payload for MessageToPlugin"), @@ -2151,6 +2154,9 @@ impl TryFrom<PluginCommand> for ProtobufPluginCommand { } }), destination_plugin_id: message_to_plugin.destination_plugin_id, + floating_pane_coordinates: message_to_plugin + .floating_pane_coordinates + .and_then(|f| f.try_into().ok()), })), }) }, |
