mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
This commit is contained in:
parent
272f5b9b8f
commit
a19ec991b0
1 changed files with 5 additions and 2 deletions
|
|
@ -61,8 +61,8 @@ export const openSearch = async (hotkey: string, key?: string, notebookId?: stri
|
||||||
paragraph: window.siyuan.config.search.paragraph,
|
paragraph: window.siyuan.config.search.paragraph,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
let hPath = "";
|
let hPath = localData;
|
||||||
const idPath: string[] = [];
|
let idPath: string[] = [];
|
||||||
if (notebookId) {
|
if (notebookId) {
|
||||||
hPath = escapeHtml(getNotebookName(notebookId));
|
hPath = escapeHtml(getNotebookName(notebookId));
|
||||||
idPath.push(notebookId);
|
idPath.push(notebookId);
|
||||||
|
|
@ -74,6 +74,9 @@ export const openSearch = async (hotkey: string, key?: string, notebookId?: stri
|
||||||
hPath = pathPosix().join(hPath, escapeHtml(response.data));
|
hPath = pathPosix().join(hPath, escapeHtml(response.data));
|
||||||
idPath[0] = pathPosix().join(idPath[0], searchPath);
|
idPath[0] = pathPosix().join(idPath[0], searchPath);
|
||||||
}
|
}
|
||||||
|
} else if (window.siyuan.config.keymap.general.globalSearch.custom === hotkey) {
|
||||||
|
hPath = localData.hPath || "";
|
||||||
|
idPath = localData.idPath || [];
|
||||||
}
|
}
|
||||||
|
|
||||||
let range: Range;
|
let range: Range;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue