mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-06 04:40:15 +01:00
♻️ context
This commit is contained in:
parent
3ef5731cb9
commit
65821e57de
22 changed files with 50 additions and 45 deletions
|
|
@ -67,7 +67,7 @@ export const newFile = (notebookId?: string, currentPath?: string, open?: boolea
|
|||
}, () => {
|
||||
/// #if !MOBILE
|
||||
if (open) {
|
||||
openFileById({id, action: [Constants.CB_GET_HL]});
|
||||
openFileById({id, action: [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT]});
|
||||
}
|
||||
/// #endif
|
||||
});
|
||||
|
|
|
|||
|
|
@ -342,7 +342,7 @@ const initWindow = () => {
|
|||
}
|
||||
openFileById({
|
||||
id: url.substr(16, 22),
|
||||
action: [Constants.CB_GET_FOCUS],
|
||||
action: [Constants.CB_GET_FOCUS, Constants.CB_GET_CONTEXT],
|
||||
zoomIn: getSearch("focus", url) === "1"
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue