This commit is contained in:
Vanessa 2023-05-03 13:06:36 +08:00
parent 6d84d60a3d
commit a9200fa02e
4 changed files with 5 additions and 5 deletions

View file

@ -39,7 +39,7 @@ export const initConfigSearch = (element: HTMLElement) => {
// 导出 // 导出
getLang(["paragraphBeginningSpace", "md4", "export", "export1", "export2", "export5", "export11", getLang(["paragraphBeginningSpace", "md4", "export", "export1", "export2", "export5", "export11",
"export13", "export14", "export15", "export19", "export20", "blockRef", "blockEmbed"]), "export13", "export14", "export15", "export19", "export20", "ref", "blockEmbed"]),
// 外观 // 外观
getLang(["language", "language1", "appearance", "appearance1", "appearance2", getLang(["language", "language1", "appearance", "appearance1", "appearance2",

View file

@ -199,7 +199,7 @@ export abstract class Constants {
insert: { insert: {
font: {default: "⌥⌘X", custom: "⌥⌘X"}, font: {default: "⌥⌘X", custom: "⌥⌘X"},
lastUsed: {default: "⌥X", custom: "⌥X"}, lastUsed: {default: "⌥X", custom: "⌥X"},
blockRef: {default: "⌥[", custom: "⌥["}, ref: {default: "⌥[", custom: "⌥["},
kbd: {default: "⌘'", custom: "⌘'"}, kbd: {default: "⌘'", custom: "⌘'"},
sup: {default: "⌘H", custom: "⌘H"}, sup: {default: "⌘H", custom: "⌘H"},
sub: {default: "⌘J", custom: "⌘J"}, sub: {default: "⌘J", custom: "⌘J"},

View file

@ -32,7 +32,7 @@ const renderSlashMenu = (protyle: IProtyle, toolbarElement: Element) => {
</div> </div>
<div class="keyboard__slash-block"> <div class="keyboard__slash-block">
${getSlashItem(Constants.ZWSP + 2, "iconImage", window.siyuan.languages.assets)} ${getSlashItem(Constants.ZWSP + 2, "iconImage", window.siyuan.languages.assets)}
${getSlashItem("((", "iconRef", window.siyuan.languages.blockRef, "true")} ${getSlashItem("((", "iconRef", window.siyuan.languages.ref, "true")}
</div> </div>
<div class="keyboard__slash-block"> <div class="keyboard__slash-block">
${getSlashItem("{{", "iconSQL", window.siyuan.languages.blockEmbed, "true")} ${getSlashItem("{{", "iconSQL", window.siyuan.languages.blockEmbed, "true")}

View file

@ -145,8 +145,8 @@ export class Options {
private mergeToolbar(toolbar: Array<string | IMenuItem>) { private mergeToolbar(toolbar: Array<string | IMenuItem>) {
const toolbarItem: IMenuItem [] = [{ const toolbarItem: IMenuItem [] = [{
name: "block-ref", name: "block-ref",
hotkey: window.siyuan.config.keymap.editor.insert.blockRef.custom, hotkey: window.siyuan.config.keymap.editor.insert.ref.custom,
lang: "blockRef", lang: "ref",
icon: "iconRef", icon: "iconRef",
tipPosition: "ne", tipPosition: "ne",
}, { }, {