Added "action on typing" to workspaces configuration.
This commit is contained in:
parent
af40d8ab24
commit
d7ae6dcb67
1 changed files with 11 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue