diff options
| author | Aram Drevekenin <aram@poor.dev> | 2026-03-03 08:20:04 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-03 08:20:04 +0100 |
| commit | f618b0653abc918f9c34b5a4e8a06e4a11745b43 (patch) | |
| tree | b2a1cea091bd395fda4843733a081d1c87180823 /zellij-utils/src/plugin_api | |
| parent | feat(web): improve web client ui on mobile (#4723) (diff) | |
| download | sl0ppij-f618b0653abc918f9c34b5a4e8a06e4a11745b43.tar.gz sl0ppij-f618b0653abc918f9c34b5a4e8a06e4a11745b43.tar.xz sl0ppij-f618b0653abc918f9c34b5a4e8a06e4a11745b43.zip | |
Visual indication for terminal bells (#4781)
* initial implementation
* rustfmt
* allow disabling with config
* add missing kdl
* add pr
* fix tests
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 | 12 |
2 files changed, 14 insertions, 0 deletions
diff --git a/zellij-utils/src/plugin_api/event.proto b/zellij-utils/src/plugin_api/event.proto index 5daf3ecd..5aa119a9 100644 --- a/zellij-utils/src/plugin_api/event.proto +++ b/zellij-utils/src/plugin_api/event.proto @@ -431,6 +431,8 @@ message TabInfo { uint32 selectable_tiled_panes_count = 15; uint32 selectable_floating_panes_count = 16; uint32 tab_id = 17; + bool has_bell_notification = 18; + bool is_flashing_bell = 19; } message ModeUpdatePayload { diff --git a/zellij-utils/src/plugin_api/event.rs b/zellij-utils/src/plugin_api/event.rs index 431e5e0f..3b135b6d 100644 --- a/zellij-utils/src/plugin_api/event.rs +++ b/zellij-utils/src/plugin_api/event.rs @@ -1633,6 +1633,8 @@ impl TryFrom<ProtobufTabInfo> for TabInfo { selectable_floating_panes_count: protobuf_tab_info.selectable_floating_panes_count as usize, tab_id: protobuf_tab_info.tab_id as usize, + has_bell_notification: protobuf_tab_info.has_bell_notification, + is_flashing_bell: protobuf_tab_info.is_flashing_bell, }) } } @@ -1662,6 +1664,8 @@ impl TryFrom<TabInfo> for ProtobufTabInfo { selectable_tiled_panes_count: tab_info.selectable_tiled_panes_count as u32, selectable_floating_panes_count: tab_info.selectable_floating_panes_count as u32, tab_id: tab_info.tab_id as u32, + has_bell_notification: tab_info.has_bell_notification, + is_flashing_bell: tab_info.is_flashing_bell, }) } } @@ -2150,6 +2154,8 @@ fn serialize_tab_update_event_with_non_default_values() { selectable_tiled_panes_count: 10, selectable_floating_panes_count: 10, tab_id: 0, + has_bell_notification: false, + is_flashing_bell: false, }, TabInfo { position: 1, @@ -2169,6 +2175,8 @@ fn serialize_tab_update_event_with_non_default_values() { selectable_tiled_panes_count: 10, selectable_floating_panes_count: 10, tab_id: 1, + has_bell_notification: false, + is_flashing_bell: false, }, TabInfo::default(), ]); @@ -2443,6 +2451,8 @@ fn serialize_session_update_event_with_non_default_values() { selectable_tiled_panes_count: 10, selectable_floating_panes_count: 10, tab_id: 0, + has_bell_notification: false, + is_flashing_bell: false, }, TabInfo { position: 1, @@ -2462,6 +2472,8 @@ fn serialize_session_update_event_with_non_default_values() { selectable_tiled_panes_count: 10, selectable_floating_panes_count: 10, tab_id: 1, + has_bell_notification: false, + is_flashing_bell: false, }, TabInfo::default(), ]; |
