diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-17 16:08:43 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-17 16:08:43 +0300 |
| commit | 54490254f70469cd154ee630bc4bec84da178f0c (patch) | |
| tree | 450bf0397398b28932f636d33e37f73c011dd19d /src/app/state.rs | |
| parent | d998753efe506a04c80306795efc72bff60bb0ec (diff) | |
feat: sort agent panel by priority
refs #318
Diffstat (limited to 'src/app/state.rs')
| -rw-r--r-- | src/app/state.rs | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/app/state.rs b/src/app/state.rs index 089834d8..585bb3e4 100644 --- a/src/app/state.rs +++ b/src/app/state.rs @@ -832,11 +832,11 @@ pub(crate) enum CopyModeSelection { Linewise { anchor_row: u32 }, } -#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, serde::Serialize, serde::Deserialize)] -pub enum AgentPanelScope { - CurrentWorkspace, +#[derive(Debug, Clone, Copy, Default, PartialEq, Eq)] +pub enum AgentPanelSort { #[default] - AllWorkspaces, + Spaces, + Priority, } // --------------------------------------------------------------------------- @@ -1340,7 +1340,8 @@ pub struct AppState { pub sidebar_collapsed: bool, /// Ratio of sidebar height allocated to the workspaces section. pub sidebar_section_split: f32, - pub agent_panel_scope: AgentPanelScope, + pub agent_panel_sort: AgentPanelSort, + pub next_agent_state_change_seq: u64, /// Capture mouse input for Herdr's own mouse UI. When false, Herdr only /// captures mouse while the focused pane app requests mouse reporting. pub mouse_capture: bool, @@ -1689,7 +1690,8 @@ impl AppState { sidebar_width_auto: false, sidebar_collapsed: false, sidebar_section_split: 0.5, - agent_panel_scope: AgentPanelScope::AllWorkspaces, + agent_panel_sort: AgentPanelSort::Spaces, + next_agent_state_change_seq: 0, mouse_capture: true, right_click_passthrough_modifiers: None, right_click_passthrough: None, |
