mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
This commit is contained in:
parent
939b128e51
commit
cf0483d05a
4 changed files with 16 additions and 2 deletions
|
|
@ -859,7 +859,7 @@
|
|||
"insertBefore": "光标所在块前插入空块",
|
||||
"insertAfter": "光标所在块后插入空块",
|
||||
"list1": "列表",
|
||||
"insert": "插入元素",
|
||||
"element": "元素",
|
||||
"closeTab": "关闭当前页签",
|
||||
"keymap": "快捷键",
|
||||
"clearFontStyle": "清除样式",
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@ export const keymap = {
|
|||
<span class="b3-list-item__toggle b3-list-item__toggle--hl">
|
||||
<svg class="b3-list-item__arrow"><use xlink:href="#iconRight"></use></svg>
|
||||
</span>
|
||||
<span class="b3-list-item__text ft__on-surface">${window.siyuan.languages.insert}</span>
|
||||
<span class="b3-list-item__text ft__on-surface">${window.siyuan.languages.element}</span>
|
||||
</div>
|
||||
<div class="fn__none b3-list__panel">${keymap._genItem(window.siyuan.config.keymap.editor.insert, "editor" + Constants.ZWSP + "insert")}</div>
|
||||
<div class="b3-list-item b3-list-item--narrow toggle">
|
||||
|
|
|
|||
|
|
@ -427,6 +427,8 @@ export abstract class Constants {
|
|||
"inline-code": {default: "⌘G", custom: "⌘G"},
|
||||
link: {default: "⌘K", custom: "⌘K"},
|
||||
check: {default: "⌘L", custom: "⌘L"},
|
||||
"ordered-list": {default: "", custom: ""},
|
||||
list: {default: "", custom: ""},
|
||||
table: {default: "⌘O", custom: "⌘O"},
|
||||
code: {default: "⇧⌘K", custom: "⇧⌘K"},
|
||||
clearInline: {default: "⌘\\", custom: "⌘\\"},
|
||||
|
|
|
|||
|
|
@ -617,12 +617,14 @@ export class Gutter {
|
|||
icon: "iconList",
|
||||
label: window.siyuan.languages.list,
|
||||
protyle,
|
||||
accelerator: window.siyuan.config.keymap.editor.insert.list.custom,
|
||||
selectsElement,
|
||||
type: "Blocks2ULs"
|
||||
}));
|
||||
turnIntoSubmenu.push(this.turnsIntoOne({
|
||||
icon: "iconOrderedList",
|
||||
label: window.siyuan.languages["ordered-list"],
|
||||
accelerator: window.siyuan.config.keymap.editor.insert["ordered-list"].custom,
|
||||
protyle,
|
||||
selectsElement,
|
||||
type: "Blocks2OLs"
|
||||
|
|
@ -630,6 +632,7 @@ export class Gutter {
|
|||
turnIntoSubmenu.push(this.turnsIntoOne({
|
||||
icon: "iconCheck",
|
||||
label: window.siyuan.languages.check,
|
||||
accelerator: window.siyuan.config.keymap.editor.insert.check.custom,
|
||||
protyle,
|
||||
selectsElement,
|
||||
type: "Blocks2TLs"
|
||||
|
|
@ -970,6 +973,7 @@ export class Gutter {
|
|||
turnIntoSubmenu.push(this.turnsIntoOne({
|
||||
icon: "iconList",
|
||||
label: window.siyuan.languages.list,
|
||||
accelerator: window.siyuan.config.keymap.editor.insert.list.custom,
|
||||
protyle,
|
||||
selectsElement: [nodeElement],
|
||||
type: "Blocks2ULs"
|
||||
|
|
@ -977,6 +981,7 @@ export class Gutter {
|
|||
turnIntoSubmenu.push(this.turnsIntoOne({
|
||||
icon: "iconOrderedList",
|
||||
label: window.siyuan.languages["ordered-list"],
|
||||
accelerator: window.siyuan.config.keymap.editor.insert["ordered-list"].custom,
|
||||
protyle,
|
||||
selectsElement: [nodeElement],
|
||||
type: "Blocks2OLs"
|
||||
|
|
@ -984,6 +989,7 @@ export class Gutter {
|
|||
turnIntoSubmenu.push(this.turnsIntoOne({
|
||||
icon: "iconCheck",
|
||||
label: window.siyuan.languages.check,
|
||||
accelerator: window.siyuan.config.keymap.editor.insert.check.custom,
|
||||
protyle,
|
||||
selectsElement: [nodeElement],
|
||||
type: "Blocks2TLs"
|
||||
|
|
@ -1137,6 +1143,7 @@ export class Gutter {
|
|||
turnIntoSubmenu.push(this.turnsOneInto({
|
||||
icon: "iconList",
|
||||
label: window.siyuan.languages.list,
|
||||
accelerator: window.siyuan.config.keymap.editor.insert.list.custom,
|
||||
protyle,
|
||||
nodeElement,
|
||||
id,
|
||||
|
|
@ -1145,6 +1152,7 @@ export class Gutter {
|
|||
turnIntoSubmenu.push(this.turnsOneInto({
|
||||
icon: "iconCheck",
|
||||
label: window.siyuan.languages.check,
|
||||
accelerator: window.siyuan.config.keymap.editor.insert.check.custom,
|
||||
protyle,
|
||||
nodeElement,
|
||||
id,
|
||||
|
|
@ -1154,6 +1162,7 @@ export class Gutter {
|
|||
turnIntoSubmenu.push(this.turnsOneInto({
|
||||
icon: "iconList",
|
||||
label: window.siyuan.languages.list,
|
||||
accelerator: window.siyuan.config.keymap.editor.insert.list.custom,
|
||||
protyle,
|
||||
nodeElement,
|
||||
id,
|
||||
|
|
@ -1162,6 +1171,7 @@ export class Gutter {
|
|||
turnIntoSubmenu.push(this.turnsOneInto({
|
||||
icon: "iconOrderedList",
|
||||
label: window.siyuan.languages["ordered-list"],
|
||||
accelerator: window.siyuan.config.keymap.editor.insert["ordered-list"].custom,
|
||||
protyle,
|
||||
nodeElement,
|
||||
id,
|
||||
|
|
@ -1171,6 +1181,7 @@ export class Gutter {
|
|||
turnIntoSubmenu.push(this.turnsOneInto({
|
||||
icon: "iconOrderedList",
|
||||
label: window.siyuan.languages["ordered-list"],
|
||||
accelerator: window.siyuan.config.keymap.editor.insert["ordered-list"].custom,
|
||||
protyle,
|
||||
nodeElement,
|
||||
id,
|
||||
|
|
@ -1179,6 +1190,7 @@ export class Gutter {
|
|||
turnIntoSubmenu.push(this.turnsOneInto({
|
||||
icon: "iconCheck",
|
||||
label: window.siyuan.languages.check,
|
||||
accelerator: window.siyuan.config.keymap.editor.insert.check.custom,
|
||||
protyle,
|
||||
nodeElement,
|
||||
id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue