Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,18 @@ objc2-application-services = { version = "0.3.2", default-features = false, feat
"Processes",
] }
objc2-core-foundation = "0.3.2"
objc2-foundation = { version = "0.3.2", features = ["NSString"] }
objc2-foundation = { version = "0.3.2", features = [
"NSString",
"NSArray",
"NSDate",
"NSMetadata",
"NSMetadataAttributes",
"NSNotification",
"NSObjCRuntime",
"NSOperation",
"NSPredicate",
"NSRunLoop",
] }
once_cell = "1.21.3"
rand = "0.9.2"
rayon = "1.11.0"
Expand Down
9 changes: 8 additions & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,18 @@ pub const WINDOW_WIDTH: f32 = 500.;
/// The default window height
pub const DEFAULT_WINDOW_HEIGHT: f32 = 100.;

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

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

/// Maximum number of file search results that get icons loaded.
pub const FILE_SEARCH_MAX_ICONS: usize = 20;

/// Number of icons to accumulate before flushing a batch to the UI.
pub const FILE_SEARCH_ICON_BATCH_SIZE: usize = 5;

/// The rustcast descriptor name to be put for all rustcast commands
pub const RUSTCAST_DESC_NAME: &str = "Utility";

Expand Down Expand Up @@ -111,6 +117,7 @@ pub enum Message {
ChangeFocus(ArrowKey, u32),
FileSearchResult(Vec<App>),
FileSearchClear,
FileSearchIcons(Vec<(usize, iced::widget::image::Handle)>),
SetFileSearchSender(tokio::sync::watch::Sender<(String, Vec<String>)>),
DebouncedSearch(Id),
}
Expand Down
Loading
Loading