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/plugin_command.rs | |
| 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/plugin_command.rs')
| -rw-r--r-- | zellij-utils/src/plugin_api/plugin_command.rs | 6 |
1 files changed, 6 insertions, 0 deletions
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()), })), }) }, |
