Skip to content

Local, full Windows search replacement, clipboard manager, and launcher: files, apps, settings and semantic media search with Google's EmbeddingGemma 2.

Fix buffered voice pause and compact search controls; add video thumbnails

ampersandrud80a01d99cb3
diff --git a/Build-Rust.ps1 b/Build-Rust.ps1
index 1657b4f..bd678b4 100644
--- a/Build-Rust.ps1
+++ b/Build-Rust.ps1
@@ -82,8 +82,8 @@ if (Test-Path $taskPortable) { throw 'Portable staging directory already exists.
New-Item -ItemType Directory -Force $taskPortable | Out-Null
Get-ChildItem -LiteralPath $taskBundle | Copy-Item -Destination $taskPortable -Recurse -Force
Set-Content -LiteralPath (Join-Path $taskPortable 'portable.flag') -Value '' -Encoding ascii
-Compress-Archive -Path (Join-Path $taskPortable '*') -DestinationPath 'dist/installer/VectorDash-Rust-0.3.25-beta.2-x64.zip' -Force
-$taskInstaller='dist/installer/VectorDash-Beta-Setup-0.3.25-beta.2-x64.exe'
-$taskZip='dist/installer/VectorDash-Rust-0.3.25-beta.2-x64.zip'
+Compress-Archive -Path (Join-Path $taskPortable '*') -DestinationPath 'dist/installer/VectorDash-Rust-0.3.25-beta.3-x64.zip' -Force
+$taskInstaller='dist/installer/VectorDash-Beta-Setup-0.3.25-beta.3-x64.exe'
+$taskZip='dist/installer/VectorDash-Rust-0.3.25-beta.3-x64.zip'
@($taskInstaller,$taskZip) | ForEach-Object {((Get-FileHash -LiteralPath $_ -Algorithm SHA256).Hash.ToLowerInvariant()+' '+(Split-Path $_ -Leaf))} | Set-Content 'dist/installer/RUST-SHA256SUMS.txt' -Encoding ascii
Write-Output "Native installer and portable ZIP ready."
diff --git a/README.md b/README.md
index 1bf892e..9512989 100644
--- a/README.md
+++ b/README.md
@@ -21,7 +21,7 @@ Search by name or exact words, or describe what you remember. Google's **Embeddi
- **File search:** combine names, exact words and semantic matches. Read PDF, Word, Excel and PowerPoint content; optionally use OCR for screenshot text. Search across 100+ languages and opt into code search.
- **Indexing controls:** choose Quick or Full files first, prepare one batch ahead, and let long documents yield between chunk groups. Optional near-identical video frame skipping reduces repeated embeddings; learned estimates cover known queued work. Select FP32 or FP16 semantic caching without rebuilding your index, and optionally enable Rank Calibration at search time.
-- **Picture grid:** browse Images or Videos as thumbnails, with keyboard navigation and a resizable preview.
+- **Picture grid:** browse Images or Videos as thumbnails, with keyboard navigation and its own remembered preview width. Video frame thumbnails load on demand and stay in a bounded RAM cache.
- **Update channels:** choose Release for full releases, or Beta to include pre-releases, in About → Updates.
- **Quick search and previews:** a frosted popup with adjustable color, transparency and gradient. It stays compact until you type. Preview results, drag the divider to resize Search/Clipboard previews, inspect why they matched, and open, copy or reveal files in Explorer.
- **Your sources, your choice:** index names only for fast drive-wide search, or fully index selected folders. Nested Full folders override Quick drives. Select multiple search sources, exclude files/types or common Windows cache folders, and see Full/Quick counts and recent additions.
diff --git a/native/Cargo.lock b/native/Cargo.lock
index f3ee5b3..c9f09e3 100644
--- a/native/Cargo.lock
+++ b/native/Cargo.lock
@@ -5716,7 +5716,7 @@ checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
[[package]]
name = "vectordash"
-version = "0.3.25-beta.2"
+version = "0.3.25-beta.3"
dependencies = [
"anyhow",
"arboard",
diff --git a/native/Cargo.toml b/native/Cargo.toml
index fafd17e..489bb23 100644
--- a/native/Cargo.toml
+++ b/native/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "vectordash"
-version = "0.3.25-beta.2"
+version = "0.3.25-beta.3"
edition = "2024"
license = "MIT"
[dependencies]
diff --git a/native/assets/mdi/pause.svg b/native/assets/mdi/pause.svg
new file mode 100644
index 0000000..1de72f5
--- /dev/null
+++ b/native/assets/mdi/pause.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#ffffff" d="M6,19H10V5H6V19M14,5V19H18V5H14Z"/></svg>
\ No newline at end of file
diff --git a/native/assets/mdi/play.svg b/native/assets/mdi/play.svg
new file mode 100644
index 0000000..6ec589c
--- /dev/null
+++ b/native/assets/mdi/play.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#ffffff" d="M8,5.14V19.14L19,12.14L8,5.14Z"/></svg>
\ No newline at end of file
diff --git a/native/assets/mdi/stop.svg b/native/assets/mdi/stop.svg
new file mode 100644
index 0000000..4761e90
--- /dev/null
+++ b/native/assets/mdi/stop.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#ffffff" d="M18,18H6V6H18V18Z"/></svg>
\ No newline at end of file
diff --git a/native/docs/0.3.25-beta.3.md b/native/docs/0.3.25-beta.3.md
new file mode 100644
index 0000000..5d1005c
--- /dev/null
+++ b/native/docs/0.3.25-beta.3.md
@@ -0,0 +1,10 @@
+# VectorDash 0.3.25 Beta 3 — Search and playback fixes
+
+- Read-aloud pause now pauses the active audio player, including already buffered audio, and resumes it when requested. Pause/resume and stop use themed icons with tooltips.
+- Footer status centers in the space between Open full app and keyboard shortcuts.
+- Picture grids remember their own preview-divider width independently of regular search and Clipboard.
+- Visible video results load a single-frame thumbnail using a bounded background queue. Thumbnail textures are limited to 96 entries at at most 128 pixels per side (up to about 6 MiB decoded texture pixels); no thumbnail files or index blobs are stored. Temporary codec memory is additional, with at most two jobs active. Unsupported files fall back to their file icon.
+- The file type label inside the search bar is now a dropdown listing all types.
+- Opening Filter expands a compact popup; the panel is constrained and scrollable. Closing it restores the compact height.
+
+Windows 10 support remains beta; actual Windows 10 device validation is still needed. See the beta 2 notes for indexing/cache options and their test limits.
diff --git a/native/docs/BENCHMARKS.md b/native/docs/BENCHMARKS.md
index 093b9d4..71e8416 100644
--- a/native/docs/BENCHMARKS.md
+++ b/native/docs/BENCHMARKS.md
@@ -122,3 +122,12 @@ The compatibility audit guards Windows 11 DWM attributes and uses a rounded tint
Footer validation used a deliberately slow embedding endpoint: the blue outline and waiting notice remained active until a response, then returned to the result count and measured search time. Main/popup checks covered three-second notice expiry, measured status centering, AI request elapsed time and real test-audio read-aloud controls. The compact popup footer now reserves a 40-point row for its 35-point Open full app button, with padding inside the rounded window.
The final candidate also recorded 0.0% process CPU in three consecutive four-second tray-idle samples after warm-up, with no sources, clipboard capture or background indexing enabled. This short idle observation does not cover every enabled background service. Final package checks verified installer/portable manifests and four release-gate tests passed.
+
+
+## 0.3.25 Beta 3 follow-up
+
+161 standard tests passed. A fully buffered eight-second silent WAV finished before the 13-second observation without pausing; pausing from seconds four to eight kept playback active at second 13, after resume. This checks the actual player rather than only the UI flag.
+
+Main/popup checks covered independent grid/list widths and persistence, real H.264 frame thumbnails, and constrained Filter panels. With saved divider ratios of 0.75 for lists and 0.40 for grids, preview widths were 222 and 532.8 points respectively, with both saved values retained. The compact Filter case stayed within a 940×500 viewport (panel bounds 598,101 to 932,492) and returned to height 194 on close. File type options now open from the input bar, with enough menu height for all eight choices.
+
+Video thumbnails use one frame on demand in the existing two-worker, eight-slot queue. The RAM-only texture cache holds at most 96 thumbnails with maximum side 128 pixels, or at most 6 MiB RGBA pixel payload; codec and GPU allocation overhead are additional. No persistent thumbnail cache is created. Unsupported decoding falls back to the file icon.
diff --git a/native/src/app.rs b/native/src/app.rs
index 7dcc8cd..b599ec5 100644
--- a/native/src/app.rs
+++ b/native/src/app.rs
@@ -615,6 +615,10 @@ impl App {
if std::env::args().any(|a| a == "--smoke-tts-voices") {
app.tts_voice_due = Some(Instant::now());
}
+ if args.iter().any(|a| a == "--smoke-filter") {
+ app.filter_open = true;
+ app.filter_anchor = egui::pos2(600.0, 110.0);
+ }
if let Some(category) = get("--smoke-category") {
app.category = category;
}
@@ -1306,7 +1310,7 @@ impl App {
[rgba.width() as usize, rgba.height() as usize],
&rgba,
);
- if self.thumbs.len() >= 200 {
+ if self.thumbs.len() >= 96 {
self.thumbs.clear();
}
self.thumbs.insert(
@@ -2003,7 +2007,7 @@ impl App {
.background_color(Color32::TRANSPARENT)
.margin(egui::Margin {
right: if self.tool == "Search" {
- 92
+ 127
} else if self.tool == "AI" {
124
} else {
@@ -2044,22 +2048,59 @@ impl App {
self.paint_waveform(ui, response.rect);
}
if self.tool == "Search" {
- let label = match self.category.as_str() {
- "All files" => "All",
- "Audio / video" => "Audio/Video",
- other => other,
- };
- ui.painter().text(
- egui::pos2(response.rect.right() - 10.0, response.rect.center().y),
- egui::Align2::RIGHT_CENTER,
- label,
- egui::FontId::proportional(11.0),
- if ui.visuals().dark_mode {
- Color32::WHITE
- } else {
- Color32::BLACK
+ let rect = egui::Rect::from_min_max(
+ egui::pos2(response.rect.right() - 126.0, response.rect.top() + 4.0),
+ response.rect.right_bottom() - egui::vec2(4.0, 4.0),
+ );
+ let old = self.category.clone();
+ ui.scope_builder(
+ egui::UiBuilder::new()
+ .max_rect(rect)
+ .layout(egui::Layout::left_to_right(egui::Align::Center)),
+ |ui| {
+ ui.spacing_mut().combo_width = 114.0;
+ if self.smoke.is_some()
+ && self.startup.elapsed() > Duration::from_secs(1)
+ && std::env::args().any(|a| a == "--smoke-type-dropdown")
+ {
+ egui::Popup::open_id(
+ ctx,
+ ui.make_persistent_id(egui::Id::new("input-file-type"))
+ .with("popup"),
+ );
+ }
+ egui::ComboBox::from_id_salt("input-file-type")
+ .truncate()
+ .height(360.0)
+ .width(114.0)
+ .selected_text(if self.category == "All files" {
+ "All"
+ } else {
+ &self.category
+ })
+ .show_ui(ui, |ui| {
+ for category in CATEGORIES {
+ let choice = ui.selectable_value(
+ &mut self.category,
+ category.into(),
+ category,
+ );
+ if self.smoke.is_some() && category == "Programs" {
+ ctx.data_mut(|d| {
+ d.insert_temp(
+ egui::Id::new("qa-type-last"),
+ choice.rect,
+ )
+ });
+ }
+ }
+ });
},
);
+ if old != self.category {
+ self.selected = 0;
+ self.changed();
+ }
}
if self.tool == "AI" && !recording {
let full = format!("AI: {}", self.saved_settings.llm_model);
@@ -2339,13 +2380,15 @@ impl App {
self.filter_anchor = filter.rect.left_bottom();
}
let mut filter_open = self.filter_open;
- egui::Window::new("Filter")
+ let filter_window=egui::Window::new("Filter")
.id(egui::Id::new("search-filter-panel"))
.open(&mut filter_open)
.collapsible(false)
.resizable(false)
.movable(false)
- .fixed_pos(self.filter_anchor)
+ .fixed_pos(egui::pos2(self.filter_anchor.x.min(ctx.content_rect().right()-330.0).max(8.0),self.filter_anchor.y))
+ .constrain_to(ctx.content_rect().shrink(8.0))
+ .max_width(320.0).max_height(330.0).vscroll(true)
.show(ctx, |ui| {
ui.set_min_width(240.0);
ui.label("File type");
@@ -2427,6 +2470,7 @@ impl App {
.desired_width(150.0),
);
});
+ if let Some(window)=filter_window {if self.smoke.is_some(){ctx.data_mut(|d|d.insert_temp(egui::Id::new("qa-filter-bounds"),window.response.rect));}}
self.filter_open = filter_open;
let mut selected = None;
egui::ComboBox::from_id_salt("saved-searches")
@@ -2489,11 +2533,21 @@ impl App {
);
}
let available = ui.available_size();
+ let grid = self.s.picture_grid && matches!(self.category.as_str(), "Images" | "Videos");
+ let split = if grid {
+ &mut self.window_state.grid_split
+ } else {
+ &mut self.window_state.search_split
+ };
let mut columns = preview_columns(
ui,
- "search-preview-divider",
- &mut self.window_state.search_split,
- 0.60,
+ if grid {
+ "grid-preview-divider"
+ } else {
+ "search-preview-divider"
+ },
+ split,
+ if grid { 0.55 } else { 0.60 },
available.y.max(1.0),
);
if self.smoke.is_some() {
@@ -3789,7 +3843,7 @@ impl App {
&& (self.engine.models.search_hold(&self.s).is_some()
|| self.model_warm_error.is_some());
let controls_width = if playback {
- 105.0
+ 94.0
} else if load_override {
95.0
} else {
@@ -3807,8 +3861,7 @@ impl App {
.x
.min((center.width() - controls_width).max(0.0));
let needed = text_width + controls_width;
- let offset = (row.center().x - center.left() - needed / 2.0)
- .clamp(0.0, (center.width() - needed).max(0.0));
+ let offset = ((center.width() - needed) / 2.0).max(0.0);
middle.add_space(offset);
let response = middle.add_sized(
[text_width, 22.0],
@@ -3820,14 +3873,33 @@ impl App {
response.on_hover_text(&footer);
if playback {
let paused = self.tts_paused.load(Ordering::Acquire);
- if middle
- .small_button(if paused { "Play" } else { "Pause" })
- .clicked()
- {
- self.tts_paused.store(!paused, Ordering::Release);
+ let pause = middle
+ .add(egui::Button::image(crate::icons::image(
+ if paused {
+ crate::icons::Icon::Play
+ } else {
+ crate::icons::Icon::Pause
+ },
+ self.accent(),
+ 18.0,
+ )))
+ .on_hover_text(if paused {
+ "Resume read aloud"
+ } else {
+ "Pause read aloud"
+ });
+ if self.smoke.is_some() {
+ ctx.data_mut(|d| d.insert_temp(egui::Id::new("qa-playback-pause"), pause.rect));
+ }
+ if pause.clicked() {
+ self.set_read_aloud_paused(!paused);
}
if middle
- .small_button("Stop")
+ .add(egui::Button::image(crate::icons::image(
+ crate::icons::Icon::Stop,
+ self.accent(),
+ 18.0,
+ )))
.on_hover_text("Stop playback")
.clicked()
{
@@ -4819,6 +4891,12 @@ impl App {
self.status = "Copied".into();
}
}
+ fn set_read_aloud_paused(&mut self, paused: bool) {
+ match crate::platform::pause_playback(paused) {
+ Ok(()) => self.tts_paused.store(paused, Ordering::Release),
+ Err(error) => self.tts_status = error.to_string(),
+ }
+ }
fn stop_read_aloud(&mut self) {
self.tts_cancel.store(true, Ordering::Release);
self.tts_paused.store(false, Ordering::Release);
@@ -5935,6 +6013,25 @@ impl eframe::App for App {
}
}
}
+ if self.smoke.is_some()
+ && self.tts_busy
+ && std::env::args().any(|a| a == "--smoke-pause-playback")
+ {
+ let seconds = self.startup.elapsed().as_secs_f64();
+ let paused = seconds >= 4.0 && seconds < 8.0;
+ if self.tts_paused.load(Ordering::Acquire) != paused {
+ self.set_read_aloud_paused(paused);
+ }
+ if paused && self.tts_paused.load(Ordering::Acquire) {
+ ctx.data_mut(|d| d.insert_temp(egui::Id::new("qa-pause-seen"), true));
+ }
+ }
+ if self.smoke.is_some()
+ && self.startup.elapsed() > Duration::from_secs(3)
+ && std::env::args().any(|a| a == "--smoke-filter-roundtrip")
+ {
+ self.filter_open = false;
+ }
if ctx.input(|i| i.modifiers.ctrl && i.key_pressed(egui::Key::F)) {
self.page = 0;
self.select_query = true;
@@ -6586,7 +6683,7 @@ impl eframe::App for App {
};
let expansion =
ctx.animate_bool_with_time(egui::Id::new("popup-expansion"), !empty, 0.18);
- let panel = false;
+ let panel = self.filter_open || egui::Popup::is_any_open(ctx);
if self.popup_size_state != Some(empty)
|| self.popup_model_panel != panel
|| (expansion > 0.0 && expansion < 1.0)
@@ -6603,7 +6700,8 @@ impl eframe::App for App {
254.0 + 386.0 * expansion
} else {
194.0 + 446.0 * expansion
- } + if panel { 75.0 } else { 0.0 },
+ }
+ .max(if panel { 500.0 } else { 0.0 }),
)));
}
} else {
@@ -7127,6 +7225,9 @@ impl eframe::App for App {
("preview_pane", "qa-preview-pane"),
("footer_status", "qa-footer-status"),
("footer_row", "qa-footer-row"),
+ ("filter_bounds", "qa-filter-bounds"),
+ ("type_last_choice", "qa-type-last"),
+ ("playback_pause", "qa-playback-pause"),
("open_full_button", "qa-open-full"),
("footer_text_rect", "qa-footer-text"),
("preview_image", "qa-preview-image"),
@@ -7149,6 +7250,12 @@ impl eframe::App for App {
);
data["window_size"] =
serde_json::json!([ctx.content_rect().width(), ctx.content_rect().height()]);
+ data["filter_open"] = serde_json::json!(self.filter_open);
+ data["qa_pause_seen"] = serde_json::json!(
+ ctx.data(|d| d.get_temp::<bool>(egui::Id::new("qa-pause-seen")))
+ .unwrap_or(false)
+ );
+ data["thumbnail_count"] = serde_json::json!(self.thumbs.len());
data["category"] = serde_json::json!(self.category);
data["remote_context"] = serde_json::json!(self.s.remote_context);
data["llm_context"] = serde_json::json!(self.s.llm_context);
diff --git a/native/src/config.rs b/native/src/config.rs
index 0486614..562917e 100644
--- a/native/src/config.rs
+++ b/native/src/config.rs
@@ -1132,6 +1132,8 @@ pub struct WindowState {
#[serde(default)]
pub search_split: Option<f32>,
#[serde(default)]
+ pub grid_split: Option<f32>,
+ #[serde(default)]
pub clipboard_split: Option<f32>,
}
impl WindowState {
@@ -1158,6 +1160,7 @@ mod window_tests {
main: Some([-1200.0, 180.0]),
popup: Some([300.0, 250.0]),
search_split: Some(0.62),
+ grid_split: Some(0.45),
clipboard_split: Some(0.5),
};
state.save(home.path()).unwrap();
diff --git a/native/src/icons.rs b/native/src/icons.rs
index 8570166..a1805b0 100644
--- a/native/src/icons.rs
+++ b/native/src/icons.rs
@@ -13,6 +13,9 @@ pub enum Icon {
Clipboard,
Microphone,
Speaker,
+ Play,
+ Pause,
+ Stop,
Camera,
Image,
File,
@@ -47,6 +50,9 @@ pub fn image(icon: Icon, color: Color32, size: f32) -> egui::Image<'static> {
"clipboard-outline",
include_bytes!("../assets/mdi/clipboard-outline.svg"),
),
+ Icon::Play => ("play", include_bytes!("../assets/mdi/play.svg")),
+ Icon::Pause => ("pause", include_bytes!("../assets/mdi/pause.svg")),
+ Icon::Stop => ("stop", include_bytes!("../assets/mdi/stop.svg")),
Icon::Speaker => (
"volume-high",
include_bytes!("../assets/mdi/volume-high.svg"),
diff --git a/native/src/previews.rs b/native/src/previews.rs
index f2292b3..f1ce09b 100644
--- a/native/src/previews.rs
+++ b/native/src/previews.rs
@@ -20,7 +20,16 @@ pub fn thumbnail(path: String, settings: Settings, tx: NotifySender) -> Result<(
let extension = crate::content::extension(Path::new(&task.path));
let result = if crate::content::is_image(&extension) {
crate::content::decode(Path::new(&task.path), &task.settings)
- .and_then(|i| crate::content::jpeg(&i, 64))
+ .and_then(|i| crate::content::jpeg(&i, 128))
+ } else if crate::content::is_video(&extension) {
+ // One frame, only for visible results; no thumbnail files or database blobs.
+ // Keep a small CPU decode independent of an embedding GPU context.
+ let mut settings = task.settings.clone();
+ settings.video_decode_device = "CPU".into();
+ crate::content::video_frame(Path::new(&task.path), 0.0, &settings)
+ .and_then(|b| image::load_from_memory(&b).map_err(Into::into))
+ .and_then(|i| crate::content::jpeg(&i, 128))
+ .or_else(|_| crate::platform::icon_png(&task.path))
} else {
crate::platform::icon_png(&task.path)
}
diff --git a/native/src/tts.rs b/native/src/tts.rs
index abfdbf8..57925ff 100644
--- a/native/src/tts.rs
+++ b/native/src/tts.rs
@@ -157,6 +157,7 @@ pub fn speak_report(
let mut format = None;
let received = receive_audio(s, &part, cancel, |audio, kind| {
while paused.load(Ordering::Acquire) && !cancel.load(Ordering::Acquire) {
+ crate::platform::pause_playback(true)?;
std::thread::sleep(Duration::from_millis(25));
}
anyhow::ensure!(!cancel.load(Ordering::Acquire), "Read aloud stopped");
@@ -167,6 +168,7 @@ pub fn speak_report(
crate::platform::pause_playback(true)?;
}
}
+ crate::platform::pause_playback(paused.load(Ordering::Acquire))?;
anyhow::ensure!(format == Some(kind), "TTS stream changed its audio format");
input.as_mut().unwrap().write_all(audio)?;
Ok(())
@@ -180,6 +182,7 @@ pub fn speak_report(
}
}
loop {
+ crate::platform::pause_playback(paused.load(Ordering::Acquire))?;
let errors = crate::platform::playback_errors();
anyhow::ensure!(errors.is_empty(), "{}", errors.join("; "));
if !crate::platform::playback_active() {
diff --git a/packaging/VectorDash-Rust.iss b/packaging/VectorDash-Rust.iss
index 09e564c..bfc9444 100644
--- a/packaging/VectorDash-Rust.iss
+++ b/packaging/VectorDash-Rust.iss
@@ -3,7 +3,7 @@ AppId={{C6AC1B4D-A119-4D73-B2C8-6C507DEFE923}
AppName=VectorDash
AppVerName=VectorDash
UninstallDisplayName=VectorDash
-AppVersion=0.3.25-beta.2
+AppVersion=0.3.25-beta.3
VersionInfoVersion=0.3.25.0
AppPublisher=VectorDash contributors
AppPublisherURL=https://github.com/ampersandru/VectorDash
@@ -14,7 +14,7 @@ ArchitecturesAllowed=x64compatible
ArchitecturesInstallIn64BitMode=x64compatible
MinVersion=10.0.19041
OutputDir=..\dist\installer
-OutputBaseFilename=VectorDash-Beta-Setup-0.3.25-beta.2-x64
+OutputBaseFilename=VectorDash-Beta-Setup-0.3.25-beta.3-x64
SetupIconFile=VectorDash.ico
UninstallDisplayIcon={app}\VectorDash.exe
LicenseFile=..\LICENSE