Bound native media preview capabilities and source range reads
This commit is contained in:
1 parent
4b0b5ebfd9
commit
370db7e791
13 files changed
+834
-46
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user