🎨 搜索内容保存

This commit is contained in:
Vanessa 2023-03-23 11:11:36 +08:00
parent 2ff96ae614
commit 5a6c28b0cd
2 changed files with 3 additions and 1 deletions

View File

@ -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,

View File

@ -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);