aboutsummaryrefslogtreecommitdiffstats
path: root/default-plugins/compact-bar/src/main.rs
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2025-06-03 17:15:32 +0200
committerGitHub <noreply@github.com>2025-06-03 17:15:32 +0200
commita9f8bbcd197c8d14832fc1ab1fbe4d4111a2014d (patch)
tree6d354fdd36cf534d73e0cb81a7cacd3fedc1ebb9 /default-plugins/compact-bar/src/main.rs
parentdocs(changelog): theme fixes (diff)
downloadsl0ppij-a9f8bbcd197c8d14832fc1ab1fbe4d4111a2014d.tar.gz
sl0ppij-a9f8bbcd197c8d14832fc1ab1fbe4d4111a2014d.tar.xz
sl0ppij-a9f8bbcd197c8d14832fc1ab1fbe4d4111a2014d.zip
feat(ux): improve multiple select (#4221)
* intercept/clear-intercept key APIs * allow opening a pinned unfocused floating pane * rework plugin * improve some apis * fix tests * tests for pane groups * more exact placement and tests * plugin command permission and cleanup * improve some multiselect ux * improve plugin ui * remove old status indicator * allow moving plugin out of the way * style(fmt): rustfmt * update plugins * remove old keybinding * cleanups * fix: only rename pane if needed * changelog and some cleanups * style(fmt): rustfmt
Diffstat (limited to 'default-plugins/compact-bar/src/main.rs')
-rw-r--r--default-plugins/compact-bar/src/main.rs27
1 files changed, 0 insertions, 27 deletions
diff --git a/default-plugins/compact-bar/src/main.rs b/default-plugins/compact-bar/src/main.rs
index d4a43ab8..91924211 100644
--- a/default-plugins/compact-bar/src/main.rs
+++ b/default-plugins/compact-bar/src/main.rs
@@ -26,8 +26,6 @@ struct State {
tab_line: Vec<LinePart>,
text_copy_destination: Option<CopyDestination>,
display_system_clipboard_failure: bool,
- own_client_id: Option<ClientId>,
- grouped_panes_count: Option<usize>,
}
static ARROW_SEPARATOR: &str = "";
@@ -46,7 +44,6 @@ impl ZellijPlugin for State {
EventType::SystemClipboardFailure,
EventType::PaneUpdate,
]);
- self.own_client_id = Some(get_plugin_ids().client_id);
}
fn update(&mut self, event: Event) -> bool {
@@ -112,28 +109,6 @@ impl ZellijPlugin for State {
self.text_copy_destination = None;
self.display_system_clipboard_failure = false;
},
- Event::PaneUpdate(pane_manifest) => {
- if let Some(own_client_id) = self.own_client_id {
- let mut grouped_panes_count = 0;
- for (_tab_index, pane_infos) in pane_manifest.panes {
- for pane_info in pane_infos {
- let is_in_pane_group =
- pane_info.index_in_pane_group.get(&own_client_id).is_some();
- if is_in_pane_group {
- grouped_panes_count += 1;
- }
- }
- }
- if Some(grouped_panes_count) != self.grouped_panes_count {
- if grouped_panes_count == 0 {
- self.grouped_panes_count = None;
- } else {
- self.grouped_panes_count = Some(grouped_panes_count);
- }
- should_render = true;
- }
- }
- },
_ => {
eprintln!("Got unrecognized event: {:?}", event);
},
@@ -207,8 +182,6 @@ impl ZellijPlugin for State {
self.mode_info.mode,
&active_swap_layout_name,
is_swap_layout_dirty,
- &self.mode_info,
- self.grouped_panes_count,
);
let output = self
.tab_line