Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 搜索内容保存

Vanessa5a6c28b0cdaa
diff --git a/app/src/search/spread.ts b/app/src/search/spread.ts
index e1d738d3cc..36f0dda478 100644
--- a/app/src/search/spread.ts
+++ b/app/src/search/spread.ts
@@ -87,6 +87,7 @@ export const openSearch = async (hotkey: string, key?: string, notebookId?: stri
});
dialog.element.setAttribute("data-key", hotkey);
const edit = genSearch({
+ removed: localData.removed,
k: key || localData.k,
r: localData.r,
hasReplace: hotkey === window.siyuan.config.keymap.general.replace.custom,
diff --git a/app/src/search/util.ts b/app/src/search/util.ts
index 645a5f3026..82ebe230a8 100644
--- a/app/src/search/util.ts
+++ b/app/src/search/util.ts
@@ -65,7 +65,8 @@ export const openGlobalSearch = (text: string, replace: boolean) => {
idPath: [],
group: localData.group,
sort: localData.sort,
- types: localData.types
+ types: localData.types,
+ removed: localData.removed
}
});
tab.addModel(asset);