Added "action on typing" to workspaces configuration.

This commit is contained in:
Lysander Treumann 2026-01-31 02:47:03 +01:00 committed by Jeremy Soller
parent af40d8ab24
commit d7ae6dcb67

View file

@ -9,6 +9,8 @@ pub struct WorkspaceConfig {
pub workspace_mode: WorkspaceMode,
#[serde(default)]
pub workspace_layout: WorkspaceLayout,
#[serde(default)]
pub action_on_typing: Action,
}
impl Default for WorkspaceConfig {
@ -16,6 +18,7 @@ impl Default for WorkspaceConfig {
Self {
workspace_mode: WorkspaceMode::OutputBound,
workspace_layout: WorkspaceLayout::Vertical,
action_on_typing: Action::default(),
}
}
}
@ -33,6 +36,14 @@ pub enum WorkspaceLayout {
Horizontal,
}
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Serialize, Deserialize)]
pub enum Action {
#[default]
None,
OpenLauncher,
OpenApplications,
}
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct OutputMatch {
pub name: String,