diff --git a/app/src/protyle/hint/extend.ts b/app/src/protyle/hint/extend.ts index bf18c13d7..06ea1dd2e 100644 --- a/app/src/protyle/hint/extend.ts +++ b/app/src/protyle/hint/extend.ts @@ -46,13 +46,11 @@ export const hintSlash = (key: string, protyle: IProtyle) => { filter: ["ai chat"], value: Constants.ZWSP + 5, html: '
AI Chat
', - }]; - allList.push({ + },{ filter: ["数据库", "属性视图", "shujuku", "shuxingshitu", "sjk", "sxst", "database", "attribute view"], value: '
', html: `
${window.siyuan.languages.database}
`, - }); - [{ + }, { filter: ["文档", "子文档", "wendang", "wd", "ziwendang", "zwd", "xjwd"], value: Constants.ZWSP + 4, html: `
${window.siyuan.languages.newFile}${updateHotkeyTip(window.siyuan.config.keymap.general.newFile.custom)}
`, @@ -248,13 +246,10 @@ export const hintSlash = (key: string, protyle: IProtyle) => { filter: ["移除样式", "yichuyangshi", "ycys", "remove style"], value: `style${Constants.ZWSP}`, html: `
A
${window.siyuan.languages.clearFontStyle}
`, - }].forEach(item => { - allList.push(item); - }); - allList.push({ + },{ value: "", html: "separator", - }); + }]; let hasPlugin = false; protyle.app.plugins.forEach((plugin) => { plugin.protyleSlash.forEach(slash => { diff --git a/app/src/protyle/hint/index.ts b/app/src/protyle/hint/index.ts index 170a322d5..c8651b343 100644 --- a/app/src/protyle/hint/index.ts +++ b/app/src/protyle/hint/index.ts @@ -784,7 +784,9 @@ ${genHintItemHTML(item)} } else if (value === "---") { focusBlock(nodeElement); } else if (nodeElement.classList.contains("av")) { - avRender(nodeElement, protyle); + avRender(nodeElement, protyle, () => { + focusBlock(nodeElement); + }); } else { focusByWbr(nodeElement, range); }