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