diff options
| author | Aram Drevekenin <aram@poor.dev> | 2025-02-18 11:11:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-18 11:11:58 +0100 |
| commit | 544982dad4746ab2f264f77a44379d64a7a42aa7 (patch) | |
| tree | 0e7c9cdae0f3a624aa38e1afc4e5575b1e6c41de /zellij-utils/src/plugin_api | |
| parent | docs(changelog): convert old themes (diff) | |
| download | sl0ppij-544982dad4746ab2f264f77a44379d64a7a42aa7.tar.gz sl0ppij-544982dad4746ab2f264f77a44379d64a7a42aa7.tar.xz sl0ppij-544982dad4746ab2f264f77a44379d64a7a42aa7.zip | |
feat(ui): resize shortcuts (#4003)
* feat(ui): show resize and focus shortcuts when relevant
* update serialization and snapshots
* update e2e tests
* style(fmt): rustfmt
Diffstat (limited to 'zellij-utils/src/plugin_api')
| -rw-r--r-- | zellij-utils/src/plugin_api/event.proto | 2 | ||||
| -rw-r--r-- | zellij-utils/src/plugin_api/event.rs | 13 |
2 files changed, 15 insertions, 0 deletions
diff --git a/zellij-utils/src/plugin_api/event.proto b/zellij-utils/src/plugin_api/event.proto index b07562e2..7269cc47 100644 --- a/zellij-utils/src/plugin_api/event.proto +++ b/zellij-utils/src/plugin_api/event.proto @@ -315,6 +315,8 @@ message TabInfo { uint32 viewport_columns = 12; uint32 display_area_rows = 13; uint32 display_area_columns = 14; + uint32 selectable_tiled_panes_count = 15; + uint32 selectable_floating_panes_count = 16; } message ModeUpdatePayload { diff --git a/zellij-utils/src/plugin_api/event.rs b/zellij-utils/src/plugin_api/event.rs index 495060a6..743e1569 100644 --- a/zellij-utils/src/plugin_api/event.rs +++ b/zellij-utils/src/plugin_api/event.rs @@ -1109,6 +1109,9 @@ impl TryFrom<ProtobufTabInfo> for TabInfo { viewport_columns: protobuf_tab_info.viewport_columns as usize, display_area_rows: protobuf_tab_info.display_area_rows as usize, display_area_columns: protobuf_tab_info.display_area_columns as usize, + selectable_tiled_panes_count: protobuf_tab_info.selectable_tiled_panes_count as usize, + selectable_floating_panes_count: protobuf_tab_info.selectable_floating_panes_count + as usize, }) } } @@ -1135,6 +1138,8 @@ impl TryFrom<TabInfo> for ProtobufTabInfo { viewport_columns: tab_info.viewport_columns as u32, display_area_rows: tab_info.display_area_rows as u32, display_area_columns: tab_info.display_area_columns as u32, + selectable_tiled_panes_count: tab_info.selectable_tiled_panes_count as u32, + selectable_floating_panes_count: tab_info.selectable_floating_panes_count as u32, }) } } @@ -1540,6 +1545,8 @@ fn serialize_tab_update_event_with_non_default_values() { viewport_columns: 10, display_area_rows: 10, display_area_columns: 10, + selectable_tiled_panes_count: 10, + selectable_floating_panes_count: 10, }, TabInfo { position: 1, @@ -1556,6 +1563,8 @@ fn serialize_tab_update_event_with_non_default_values() { viewport_columns: 10, display_area_rows: 10, display_area_columns: 10, + selectable_tiled_panes_count: 10, + selectable_floating_panes_count: 10, }, TabInfo::default(), ]); @@ -1827,6 +1836,8 @@ fn serialize_session_update_event_with_non_default_values() { viewport_columns: 10, display_area_rows: 10, display_area_columns: 10, + selectable_tiled_panes_count: 10, + selectable_floating_panes_count: 10, }, TabInfo { position: 1, @@ -1843,6 +1854,8 @@ fn serialize_session_update_event_with_non_default_values() { viewport_columns: 10, display_area_rows: 10, display_area_columns: 10, + selectable_tiled_panes_count: 10, + selectable_floating_panes_count: 10, }, TabInfo::default(), ]; |
