Skip to content

Commit 6491370

Browse files
authored
Merge branch 'master' into fix/metadata_query_thread
2 parents 03ddeeb + 580c519 commit 6491370

4 files changed

Lines changed: 88 additions & 317 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,7 @@ objc2-application-services = { version = "0.3.2", default-features = false, feat
2626
"Processes",
2727
] }
2828
objc2-core-foundation = "0.3.2"
29-
objc2-foundation = { version = "0.3.2", features = [
30-
"NSString",
31-
"NSArray",
32-
"NSDate",
33-
"NSMetadata",
34-
"NSMetadataAttributes",
35-
"NSNotification",
36-
"NSObjCRuntime",
37-
"NSOperation",
38-
"NSPredicate",
39-
"NSRunLoop",
40-
] }
29+
objc2-foundation = { version = "0.3.2", features = ["NSString"] }
4130
once_cell = "1.21.3"
4231
rand = "0.9.2"
4332
rayon = "1.11.0"

src/app.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,12 @@ pub const WINDOW_WIDTH: f32 = 500.;
2121
/// The default window height
2222
pub const DEFAULT_WINDOW_HEIGHT: f32 = 100.;
2323

24-
/// Maximum file search results returned by a single query.
24+
/// Maximum file search results returned by a single mdfind invocation.
2525
pub const FILE_SEARCH_MAX_RESULTS: u32 = 400;
2626

2727
/// Number of results to accumulate before flushing a batch to the UI.
2828
pub const FILE_SEARCH_BATCH_SIZE: u32 = 10;
2929

30-
/// Maximum number of file search results that get icons loaded.
31-
pub const FILE_SEARCH_MAX_ICONS: usize = 20;
32-
33-
/// Number of icons to accumulate before flushing a batch to the UI.
34-
pub const FILE_SEARCH_ICON_BATCH_SIZE: usize = 5;
35-
3630
/// The rustcast descriptor name to be put for all rustcast commands
3731
pub const RUSTCAST_DESC_NAME: &str = "Utility";
3832

@@ -117,7 +111,6 @@ pub enum Message {
117111
ChangeFocus(ArrowKey, u32),
118112
FileSearchResult(Vec<App>),
119113
FileSearchClear,
120-
FileSearchIcons(Vec<(usize, iced::widget::image::Handle)>),
121114
SetFileSearchSender(tokio::sync::watch::Sender<(String, Vec<String>)>),
122115
DebouncedSearch(Id),
123116
}

0 commit comments

Comments
 (0)