Merge branch 'main' into improved-global-search

This commit is contained in:
StroepWafel
2026-05-25 13:13:57 +09:30
committed by GitHub
32 changed files with 2729 additions and 589 deletions
+14 -1
View File
@@ -5,6 +5,7 @@ import {
defineSettings,
hotkeySetting,
} from "../../core/settingsHelpers";
import { isSeqtaEngageExperience } from "@/seqta/utils/isSeqtaEngage";
import styles from "./src/core/styles.css?inline";
import { resetSearchIndexes } from "./src/indexing/resetIndexes";
@@ -70,7 +71,7 @@ const settings = defineSettings({
});
// Create the lazy plugin definition - this loads immediately but doesn't import heavy dependencies
export default defineLazyPlugin({
const globalSearchPlugin = defineLazyPlugin({
id: "global-search",
name: "Global Search",
description: "Quick search for everything in SEQTA",
@@ -83,3 +84,15 @@ export default defineLazyPlugin({
// Lazy loader - only imports the heavy plugin when actually needed
loader: () => import("./src/core/index")
});
const runGlobalSearch = globalSearchPlugin.run!;
globalSearchPlugin.run = async (api) => {
if (isSeqtaEngageExperience()) {
return () => {};
}
return runGlobalSearch(api);
};
export default globalSearchPlugin;