mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-20 11:00:52 +08:00
This commit is contained in:
parent
5e1c8b0960
commit
30b4837f5d
@ -46,11 +46,11 @@ export const hintSlash = (key: string, protyle: IProtyle) => {
|
||||
filter: ["ai chat"],
|
||||
value: Constants.ZWSP + 5,
|
||||
html: '<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconSparkles"></use></svg><span class="b3-list-item__text">AI Chat</span></div>',
|
||||
},/* {
|
||||
}, {
|
||||
filter: ["数据库", "属性视图", "shujuku", "shuxingshitu", "sjk", "sxst", "database", "attribute view"],
|
||||
value: '<div data-type="NodeAttributeView" data-av-type="table"></div>',
|
||||
html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconDatabase"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.database}</span></div>`,
|
||||
},*/ {
|
||||
}, {
|
||||
filter: ["文档", "子文档", "wendang", "wd", "ziwendang", "zwd", "xjwd"],
|
||||
value: Constants.ZWSP + 4,
|
||||
html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconFile"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.newFile}</span><span class="b3-menu__accelerator">${updateHotkeyTip(window.siyuan.config.keymap.general.newFile.custom)}</span></div>`,
|
||||
|
@ -423,6 +423,7 @@ ${genHintItemHTML(item)}
|
||||
const realFileName = fileNames.length === 1 ? fileNames[0] : fileNames[1];
|
||||
getSavePath(protyle.path, protyle.notebookId, (pathString) => {
|
||||
fetchPost("/api/filetree/createDocWithMd", {
|
||||
showInDocTree: true,
|
||||
notebook: protyle.notebookId,
|
||||
path: pathPosix().join(pathString, realFileName),
|
||||
parentID: protyle.block.rootID,
|
||||
|
Loading…
Reference in New Issue
Block a user