Type to search or seek (#859)

* WIP: type to search/seek

* Implement type to seek
This commit is contained in:
Jeremy Soller 2025-03-06 20:44:05 -07:00 committed by GitHub
parent 7874f96ef1
commit f95762bd44
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 111 additions and 27 deletions

View file

@ -95,6 +95,12 @@ impl Favorite {
}
}
#[derive(Clone, Copy, Debug, Deserialize, Eq, PartialEq, Serialize)]
pub enum TypeToSearch {
Recursive,
EnterPath,
}
#[derive(Clone, CosmicConfigEntry, Debug, Deserialize, Eq, PartialEq, Serialize)]
#[serde(default)]
pub struct Config {
@ -103,6 +109,7 @@ pub struct Config {
pub favorites: Vec<Favorite>,
pub show_details: bool,
pub tab: TabConfig,
pub type_to_search: TypeToSearch,
}
impl Config {
@ -150,6 +157,7 @@ impl Default for Config {
],
show_details: false,
tab: TabConfig::default(),
type_to_search: TypeToSearch::Recursive,
}
}
}