mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-30 13:28:48 +01:00
💄 search escape
This commit is contained in:
parent
c45352b8b9
commit
7108855a00
2 changed files with 3 additions and 2 deletions
|
|
@ -145,6 +145,7 @@
|
|||
white-space: nowrap;
|
||||
position: relative;
|
||||
padding-right: 20px;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
&__rmpath {
|
||||
|
|
|
|||
|
|
@ -49,14 +49,14 @@ export const openSearch = async (hotkey: string, key?: string, notebookId?: stri
|
|||
let hPath = "";
|
||||
let idPath: string[] = [];
|
||||
if (notebookId) {
|
||||
hPath = escapeHtml(getNotebookName(notebookId));
|
||||
hPath = getNotebookName(notebookId);
|
||||
idPath.push(notebookId);
|
||||
if (searchPath && searchPath !== "/") {
|
||||
const response = await fetchSyncPost("/api/filetree/getHPathByPath", {
|
||||
notebook: notebookId,
|
||||
path: searchPath.endsWith(".sy") ? searchPath : searchPath + ".sy"
|
||||
});
|
||||
hPath = pathPosix().join(hPath, escapeHtml(response.data));
|
||||
hPath = pathPosix().join(hPath, response.data);
|
||||
idPath[0] = pathPosix().join(idPath[0], searchPath);
|
||||
}
|
||||
} else if (window.siyuan.config.keymap.general.globalSearch.custom === hotkey) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue