Bound native media preview capabilities and source range reads

This commit is contained in:
karl committed 2026-10-13 14:22:19 +02:00
1 parent 4b0b5ebfd9
commit 370db7e791
13 files changed
+834 -46

No files matched your search

+2 -1
View File
@@ -61,6 +61,7 @@ import {
sourceLabel,
seekSeconds,
PreviewRevision,
previewSelectionKey,
} from "./media-display";
interface SearchResult {
@@ -892,7 +893,7 @@ function select(index: number, focus = false, userChoice = true) {
? `Open in your default application. The matched location ${sourceLabel(result.source)} is shown in Searchi; default application opening starts at its own location.`
: "Open in your default application";
const selection = previewRevision.select(
JSON.stringify([result.path, result.source?.kind, result.source?.number]),
previewSelectionKey(result.path, result.source, folderRevision),
);
if (selection.changed) {
mediaLane.clear();