@vscode/markdown-editor 0.0.2-97 → 0.0.2-99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands.d.ts +3 -1
- package/dist/commands.js +48 -24
- package/dist/commands.js.map +1 -1
- package/dist/index.d.ts +17 -1
- package/dist/index.js +1446 -1285
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/commands.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const commands: readonly EditorCommandDefinition[];
|
|
|
7
7
|
|
|
8
8
|
export declare type CursorKeyboardAction = 'left' | 'right' | 'up' | 'down' | 'wordLeft' | 'wordRight' | 'visualLineStart' | 'visualLineEnd' | 'logicalLineStart' | 'logicalLineEnd' | 'documentStart' | 'documentEnd';
|
|
9
9
|
|
|
10
|
-
export declare type EditKeyboardAction = 'deleteLeft' | 'deleteRight' | 'deleteWordLeft' | 'deleteWordRight' | 'deleteLineLeft' | 'deleteLineRight';
|
|
10
|
+
export declare type EditKeyboardAction = 'deleteLeft' | 'deleteRight' | 'deleteWordLeft' | 'deleteWordRight' | 'deleteLineLeft' | 'deleteLineRight' | 'copyLinesUp' | 'copyLinesDown' | 'moveLinesUp' | 'moveLinesDown' | 'deleteLines' | 'joinLines';
|
|
11
11
|
|
|
12
12
|
export declare interface EditorCommandDefinition {
|
|
13
13
|
readonly id: `markdown.editor.${string}`;
|
|
@@ -42,6 +42,8 @@ export declare type EditorKeyboardAction = {
|
|
|
42
42
|
readonly command: TabKeyboardAction;
|
|
43
43
|
} | {
|
|
44
44
|
readonly kind: 'toggleTabFocus';
|
|
45
|
+
} | {
|
|
46
|
+
readonly kind: 'toggleReadonly';
|
|
45
47
|
} | {
|
|
46
48
|
readonly kind: 'selectAll';
|
|
47
49
|
} | {
|
package/dist/commands.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const r = ["macos"],
|
|
1
|
+
const r = ["macos"], n = ["windows", "linux"], o = (i, u = !1) => ({
|
|
2
2
|
kind: "cursor",
|
|
3
|
-
command:
|
|
3
|
+
command: i,
|
|
4
4
|
extend: u
|
|
5
|
-
}), d = (
|
|
5
|
+
}), d = (i) => ({ kind: "edit", command: i }), c = (i) => ({ kind: "history", command: i }), s = (i) => ({ kind: "tab", command: i }), l = (i) => ({
|
|
6
6
|
kind: "enter",
|
|
7
|
-
command:
|
|
8
|
-
}), t = (
|
|
7
|
+
command: i
|
|
8
|
+
}), t = (i, u, a) => ({ key: i, modifiers: u, platforms: a }), e = (i, u, a, w, m = "host") => ({ id: i, title: u, action: a, keybindings: w, routing: m }), L = [
|
|
9
9
|
e("markdown.editor.cursorLeft", "Move Cursor Left", o("left"), [
|
|
10
10
|
t("b", { ctrl: !0 }, r),
|
|
11
11
|
t("ArrowLeft")
|
|
@@ -36,19 +36,19 @@ const r = ["macos"], i = ["windows", "linux"], o = (n, u = !1) => ({
|
|
|
36
36
|
]),
|
|
37
37
|
e("markdown.editor.cursorWordLeft", "Move Cursor Word Left", o("wordLeft"), [
|
|
38
38
|
t("ArrowLeft", { alt: !0 }, r),
|
|
39
|
-
t("ArrowLeft", { ctrl: !0 },
|
|
39
|
+
t("ArrowLeft", { ctrl: !0 }, n)
|
|
40
40
|
]),
|
|
41
41
|
e("markdown.editor.cursorWordRight", "Move Cursor Word Right", o("wordRight"), [
|
|
42
42
|
t("ArrowRight", { alt: !0 }, r),
|
|
43
|
-
t("ArrowRight", { ctrl: !0 },
|
|
43
|
+
t("ArrowRight", { ctrl: !0 }, n)
|
|
44
44
|
]),
|
|
45
45
|
e("markdown.editor.cursorWordLeftSelect", "Select Word Left", o("wordLeft", !0), [
|
|
46
46
|
t("ArrowLeft", { alt: !0, shift: !0 }, r),
|
|
47
|
-
t("ArrowLeft", { ctrl: !0, shift: !0 },
|
|
47
|
+
t("ArrowLeft", { ctrl: !0, shift: !0 }, n)
|
|
48
48
|
]),
|
|
49
49
|
e("markdown.editor.cursorWordRightSelect", "Select Word Right", o("wordRight", !0), [
|
|
50
50
|
t("ArrowRight", { alt: !0, shift: !0 }, r),
|
|
51
|
-
t("ArrowRight", { ctrl: !0, shift: !0 },
|
|
51
|
+
t("ArrowRight", { ctrl: !0, shift: !0 }, n)
|
|
52
52
|
]),
|
|
53
53
|
e("markdown.editor.cursorVisualLineStart", "Move Cursor to Visual Line Start", o("visualLineStart"), [
|
|
54
54
|
t("ArrowLeft", { meta: !0 }, r),
|
|
@@ -80,23 +80,23 @@ const r = ["macos"], i = ["windows", "linux"], o = (n, u = !1) => ({
|
|
|
80
80
|
]),
|
|
81
81
|
e("markdown.editor.cursorDocumentStart", "Move Cursor to Document Start", o("documentStart"), [
|
|
82
82
|
t("ArrowUp", { meta: !0 }, r),
|
|
83
|
-
t("Home", { ctrl: !0 },
|
|
83
|
+
t("Home", { ctrl: !0 }, n)
|
|
84
84
|
]),
|
|
85
85
|
e("markdown.editor.cursorDocumentEnd", "Move Cursor to Document End", o("documentEnd"), [
|
|
86
86
|
t("ArrowDown", { meta: !0 }, r),
|
|
87
|
-
t("End", { ctrl: !0 },
|
|
87
|
+
t("End", { ctrl: !0 }, n)
|
|
88
88
|
]),
|
|
89
89
|
e("markdown.editor.cursorDocumentStartSelect", "Select to Document Start", o("documentStart", !0), [
|
|
90
90
|
t("ArrowUp", { meta: !0, shift: !0 }, r),
|
|
91
|
-
t("Home", { ctrl: !0, shift: !0 },
|
|
91
|
+
t("Home", { ctrl: !0, shift: !0 }, n)
|
|
92
92
|
]),
|
|
93
93
|
e("markdown.editor.cursorDocumentEndSelect", "Select to Document End", o("documentEnd", !0), [
|
|
94
94
|
t("ArrowDown", { meta: !0, shift: !0 }, r),
|
|
95
|
-
t("End", { ctrl: !0, shift: !0 },
|
|
95
|
+
t("End", { ctrl: !0, shift: !0 }, n)
|
|
96
96
|
]),
|
|
97
97
|
e("markdown.editor.selectAll", "Select All", { kind: "selectAll" }, [
|
|
98
98
|
t("a", { meta: !0 }, r),
|
|
99
|
-
t("a", { ctrl: !0 },
|
|
99
|
+
t("a", { ctrl: !0 }, n)
|
|
100
100
|
]),
|
|
101
101
|
e("markdown.editor.deleteLeft", "Delete Left", d("deleteLeft"), [
|
|
102
102
|
t("h", { ctrl: !0 }, r),
|
|
@@ -111,11 +111,11 @@ const r = ["macos"], i = ["windows", "linux"], o = (n, u = !1) => ({
|
|
|
111
111
|
]),
|
|
112
112
|
e("markdown.editor.deleteWordLeft", "Delete Word Left", d("deleteWordLeft"), [
|
|
113
113
|
t("Backspace", { alt: !0 }, r),
|
|
114
|
-
t("Backspace", { ctrl: !0 },
|
|
114
|
+
t("Backspace", { ctrl: !0 }, n)
|
|
115
115
|
]),
|
|
116
116
|
e("markdown.editor.deleteWordRight", "Delete Word Right", d("deleteWordRight"), [
|
|
117
117
|
t("Delete", { alt: !0 }, r),
|
|
118
|
-
t("Delete", { ctrl: !0 },
|
|
118
|
+
t("Delete", { ctrl: !0 }, n)
|
|
119
119
|
]),
|
|
120
120
|
e("markdown.editor.deleteLineLeft", "Delete All Left", d("deleteLineLeft"), [
|
|
121
121
|
t("Backspace", { meta: !0 }, r)
|
|
@@ -124,14 +124,38 @@ const r = ["macos"], i = ["windows", "linux"], o = (n, u = !1) => ({
|
|
|
124
124
|
t("Delete", { meta: !0 }, r),
|
|
125
125
|
t("k", { ctrl: !0 }, r)
|
|
126
126
|
]),
|
|
127
|
-
e("markdown.editor.
|
|
127
|
+
e("markdown.editor.copyLinesUp", "Copy Line Up", d("copyLinesUp"), [
|
|
128
|
+
t("ArrowUp", { alt: !0, shift: !0 }, r),
|
|
129
|
+
t("ArrowUp", { alt: !0, shift: !0 }, ["windows"]),
|
|
130
|
+
t("ArrowUp", { ctrl: !0, alt: !0, shift: !0 }, ["linux"])
|
|
131
|
+
]),
|
|
132
|
+
e("markdown.editor.copyLinesDown", "Copy Line Down", d("copyLinesDown"), [
|
|
133
|
+
t("ArrowDown", { alt: !0, shift: !0 }, r),
|
|
134
|
+
t("ArrowDown", { alt: !0, shift: !0 }, ["windows"]),
|
|
135
|
+
t("ArrowDown", { ctrl: !0, alt: !0, shift: !0 }, ["linux"])
|
|
136
|
+
]),
|
|
137
|
+
e("markdown.editor.moveLinesUp", "Move Line Up", d("moveLinesUp"), [
|
|
138
|
+
t("ArrowUp", { alt: !0 })
|
|
139
|
+
]),
|
|
140
|
+
e("markdown.editor.moveLinesDown", "Move Line Down", d("moveLinesDown"), [
|
|
141
|
+
t("ArrowDown", { alt: !0 })
|
|
142
|
+
]),
|
|
143
|
+
e("markdown.editor.deleteLines", "Delete Line", d("deleteLines"), [
|
|
144
|
+
t("k", { meta: !0, shift: !0 }, r),
|
|
145
|
+
t("k", { ctrl: !0, shift: !0 }, n)
|
|
146
|
+
]),
|
|
147
|
+
e("markdown.editor.joinLines", "Join Lines", d("joinLines"), [
|
|
148
|
+
t("j", { ctrl: !0 }, r)
|
|
149
|
+
]),
|
|
150
|
+
e("markdown.editor.toggleLocked", "Toggle Editing/Locked Mode", { kind: "toggleReadonly" }, []),
|
|
151
|
+
e("markdown.editor.undo", "Undo", c("undo"), [
|
|
128
152
|
t("z", { meta: !0 }, r),
|
|
129
|
-
t("z", { ctrl: !0 },
|
|
153
|
+
t("z", { ctrl: !0 }, n)
|
|
130
154
|
]),
|
|
131
|
-
e("markdown.editor.redo", "Redo",
|
|
155
|
+
e("markdown.editor.redo", "Redo", c("redo"), [
|
|
132
156
|
t("z", { meta: !0, shift: !0 }, r),
|
|
133
|
-
t("z", { ctrl: !0, shift: !0 },
|
|
134
|
-
t("y", { ctrl: !0 },
|
|
157
|
+
t("z", { ctrl: !0, shift: !0 }, n),
|
|
158
|
+
t("y", { ctrl: !0 }, n)
|
|
135
159
|
]),
|
|
136
160
|
e("markdown.editor.insertTab", "Insert Tab", s("insert"), [
|
|
137
161
|
t("Tab")
|
|
@@ -142,13 +166,13 @@ const r = ["macos"], i = ["windows", "linux"], o = (n, u = !1) => ({
|
|
|
142
166
|
e("markdown.editor.toggleTabFocus", "Toggle Tab Key Moves Focus", { kind: "toggleTabFocus" }, [
|
|
143
167
|
t("m", { ctrl: !0 })
|
|
144
168
|
], "local"),
|
|
145
|
-
e("markdown.editor.smartEnter", "Insert Paragraph",
|
|
169
|
+
e("markdown.editor.smartEnter", "Insert Paragraph", l("smartEnter"), [
|
|
146
170
|
t("Enter")
|
|
147
171
|
]),
|
|
148
|
-
e("markdown.editor.insertHardLineBreak", "Insert Hard Line Break",
|
|
172
|
+
e("markdown.editor.insertHardLineBreak", "Insert Hard Line Break", l("insertHardLineBreak"), [
|
|
149
173
|
t("Enter", { shift: !0 })
|
|
150
174
|
]),
|
|
151
|
-
e("markdown.editor.insertParagraph", "Insert Paragraph Without Continuing Markup",
|
|
175
|
+
e("markdown.editor.insertParagraph", "Insert Paragraph Without Continuing Markup", l("insertParagraph"), [
|
|
152
176
|
t("Enter", { meta: !0 }, r),
|
|
153
177
|
t("Enter", { ctrl: !0 })
|
|
154
178
|
])
|
package/dist/commands.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.js","sources":["../src/editorCommands.ts"],"sourcesContent":["export type KeyboardPlatform = 'macos' | 'windows' | 'linux';\n\nexport type CursorKeyboardAction =\n\t| 'left'\n\t| 'right'\n\t| 'up'\n\t| 'down'\n\t| 'wordLeft'\n\t| 'wordRight'\n\t| 'visualLineStart'\n\t| 'visualLineEnd'\n\t| 'logicalLineStart'\n\t| 'logicalLineEnd'\n\t| 'documentStart'\n\t| 'documentEnd';\n\nexport type EditKeyboardAction =\n\t| 'deleteLeft'\n\t| 'deleteRight'\n\t| 'deleteWordLeft'\n\t| 'deleteWordRight'\n\t| 'deleteLineLeft'\n\t| 'deleteLineRight';\n\nexport type HistoryKeyboardAction = 'undo' | 'redo';\nexport type TabKeyboardAction = 'insert' | 'outdent';\n\nexport type EditorKeyboardAction =\n\t| { readonly kind: 'cursor'; readonly command: CursorKeyboardAction; readonly extend: boolean }\n\t| { readonly kind: 'edit'; readonly command: EditKeyboardAction }\n\t| { readonly kind: 'history'; readonly command: HistoryKeyboardAction }\n\t| { readonly kind: 'tab'; readonly command: TabKeyboardAction }\n\t| { readonly kind: 'toggleTabFocus' }\n\t| { readonly kind: 'selectAll' }\n\t| { readonly kind: 'enter'; readonly command: 'smartEnter' | 'insertParagraph' | 'insertHardLineBreak' };\n\nexport interface KeyboardModifiers {\n\treadonly shift?: boolean;\n\treadonly alt?: boolean;\n\treadonly ctrl?: boolean;\n\treadonly meta?: boolean;\n}\n\nexport interface EditorCommandKeybinding {\n\treadonly key: string;\n\treadonly modifiers?: KeyboardModifiers;\n\treadonly platforms?: readonly KeyboardPlatform[];\n}\n\nexport interface EditorCommandDefinition {\n\treadonly id: `markdown.editor.${string}`;\n\treadonly title: string;\n\treadonly action: EditorKeyboardAction;\n\treadonly keybindings: readonly EditorCommandKeybinding[];\n\t/**\n\t * Local commands must execute synchronously in the webview instead of being\n\t * forwarded through the VS Code keybinding service.\n\t */\n\treadonly routing?: 'host' | 'local';\n}\n\nconst MACOS = ['macos'] as const;\nconst NON_MACOS = ['windows', 'linux'] as const;\n\nconst cursor = (command: CursorKeyboardAction, extend = false): EditorKeyboardAction => ({\n\tkind: 'cursor',\n\tcommand,\n\textend,\n});\nconst edit = (command: EditKeyboardAction): EditorKeyboardAction => ({ kind: 'edit', command });\nconst history = (command: HistoryKeyboardAction): EditorKeyboardAction => ({ kind: 'history', command });\nconst tab = (command: TabKeyboardAction): EditorKeyboardAction => ({ kind: 'tab', command });\nconst enter = (command: 'smartEnter' | 'insertParagraph' | 'insertHardLineBreak'): EditorKeyboardAction => ({\n\tkind: 'enter',\n\tcommand,\n});\nconst binding = (\n\tkey: string,\n\tmodifiers?: KeyboardModifiers,\n\tplatforms?: readonly KeyboardPlatform[],\n): EditorCommandKeybinding => ({ key, modifiers, platforms });\nconst command = (\n\tid: EditorCommandDefinition['id'],\n\ttitle: string,\n\taction: EditorKeyboardAction,\n\tkeybindings: readonly EditorCommandKeybinding[],\n\trouting: EditorCommandDefinition['routing'] = 'host',\n): EditorCommandDefinition => ({ id, title, action, keybindings, routing });\n\n/**\n * Canonical editor command catalog. Standalone keyboard handling and host\n * integrations derive their command registration and default keybindings from\n * this list.\n */\nexport const commands: readonly EditorCommandDefinition[] = [\n\tcommand('markdown.editor.cursorLeft', 'Move Cursor Left', cursor('left'), [\n\t\tbinding('b', { ctrl: true }, MACOS),\n\t\tbinding('ArrowLeft'),\n\t]),\n\tcommand('markdown.editor.cursorRight', 'Move Cursor Right', cursor('right'), [\n\t\tbinding('f', { ctrl: true }, MACOS),\n\t\tbinding('ArrowRight'),\n\t]),\n\tcommand('markdown.editor.cursorUp', 'Move Cursor Up', cursor('up'), [\n\t\tbinding('p', { ctrl: true }, MACOS),\n\t\tbinding('ArrowUp'),\n\t]),\n\tcommand('markdown.editor.cursorDown', 'Move Cursor Down', cursor('down'), [\n\t\tbinding('n', { ctrl: true }, MACOS),\n\t\tbinding('ArrowDown'),\n\t]),\n\tcommand('markdown.editor.cursorLeftSelect', 'Select Left', cursor('left', true), [\n\t\tbinding('ArrowLeft', { shift: true }),\n\t]),\n\tcommand('markdown.editor.cursorRightSelect', 'Select Right', cursor('right', true), [\n\t\tbinding('ArrowRight', { shift: true }),\n\t]),\n\tcommand('markdown.editor.cursorUpSelect', 'Select Up', cursor('up', true), [\n\t\tbinding('ArrowUp', { shift: true }),\n\t]),\n\tcommand('markdown.editor.cursorDownSelect', 'Select Down', cursor('down', true), [\n\t\tbinding('ArrowDown', { shift: true }),\n\t]),\n\tcommand('markdown.editor.cursorWordLeft', 'Move Cursor Word Left', cursor('wordLeft'), [\n\t\tbinding('ArrowLeft', { alt: true }, MACOS),\n\t\tbinding('ArrowLeft', { ctrl: true }, NON_MACOS),\n\t]),\n\tcommand('markdown.editor.cursorWordRight', 'Move Cursor Word Right', cursor('wordRight'), [\n\t\tbinding('ArrowRight', { alt: true }, MACOS),\n\t\tbinding('ArrowRight', { ctrl: true }, NON_MACOS),\n\t]),\n\tcommand('markdown.editor.cursorWordLeftSelect', 'Select Word Left', cursor('wordLeft', true), [\n\t\tbinding('ArrowLeft', { alt: true, shift: true }, MACOS),\n\t\tbinding('ArrowLeft', { ctrl: true, shift: true }, NON_MACOS),\n\t]),\n\tcommand('markdown.editor.cursorWordRightSelect', 'Select Word Right', cursor('wordRight', true), [\n\t\tbinding('ArrowRight', { alt: true, shift: true }, MACOS),\n\t\tbinding('ArrowRight', { ctrl: true, shift: true }, NON_MACOS),\n\t]),\n\tcommand('markdown.editor.cursorVisualLineStart', 'Move Cursor to Visual Line Start', cursor('visualLineStart'), [\n\t\tbinding('ArrowLeft', { meta: true }, MACOS),\n\t\tbinding('Home'),\n\t]),\n\tcommand('markdown.editor.cursorVisualLineEnd', 'Move Cursor to Visual Line End', cursor('visualLineEnd'), [\n\t\tbinding('ArrowRight', { meta: true }, MACOS),\n\t\tbinding('End'),\n\t]),\n\tcommand('markdown.editor.cursorVisualLineStartSelect', 'Select to Visual Line Start', cursor('visualLineStart', true), [\n\t\tbinding('ArrowLeft', { meta: true, shift: true }, MACOS),\n\t\tbinding('Home', { shift: true }),\n\t]),\n\tcommand('markdown.editor.cursorVisualLineEndSelect', 'Select to Visual Line End', cursor('visualLineEnd', true), [\n\t\tbinding('ArrowRight', { meta: true, shift: true }, MACOS),\n\t\tbinding('End', { shift: true }),\n\t]),\n\tcommand('markdown.editor.cursorLogicalLineStart', 'Move Cursor to Logical Line Start', cursor('logicalLineStart'), [\n\t\tbinding('a', { ctrl: true }, MACOS),\n\t]),\n\tcommand('markdown.editor.cursorLogicalLineEnd', 'Move Cursor to Logical Line End', cursor('logicalLineEnd'), [\n\t\tbinding('e', { ctrl: true }, MACOS),\n\t]),\n\tcommand('markdown.editor.cursorLogicalLineStartSelect', 'Select to Logical Line Start', cursor('logicalLineStart', true), [\n\t\tbinding('a', { ctrl: true, shift: true }, MACOS),\n\t]),\n\tcommand('markdown.editor.cursorLogicalLineEndSelect', 'Select to Logical Line End', cursor('logicalLineEnd', true), [\n\t\tbinding('e', { ctrl: true, shift: true }, MACOS),\n\t]),\n\tcommand('markdown.editor.cursorDocumentStart', 'Move Cursor to Document Start', cursor('documentStart'), [\n\t\tbinding('ArrowUp', { meta: true }, MACOS),\n\t\tbinding('Home', { ctrl: true }, NON_MACOS),\n\t]),\n\tcommand('markdown.editor.cursorDocumentEnd', 'Move Cursor to Document End', cursor('documentEnd'), [\n\t\tbinding('ArrowDown', { meta: true }, MACOS),\n\t\tbinding('End', { ctrl: true }, NON_MACOS),\n\t]),\n\tcommand('markdown.editor.cursorDocumentStartSelect', 'Select to Document Start', cursor('documentStart', true), [\n\t\tbinding('ArrowUp', { meta: true, shift: true }, MACOS),\n\t\tbinding('Home', { ctrl: true, shift: true }, NON_MACOS),\n\t]),\n\tcommand('markdown.editor.cursorDocumentEndSelect', 'Select to Document End', cursor('documentEnd', true), [\n\t\tbinding('ArrowDown', { meta: true, shift: true }, MACOS),\n\t\tbinding('End', { ctrl: true, shift: true }, NON_MACOS),\n\t]),\n\tcommand('markdown.editor.selectAll', 'Select All', { kind: 'selectAll' }, [\n\t\tbinding('a', { meta: true }, MACOS),\n\t\tbinding('a', { ctrl: true }, NON_MACOS),\n\t]),\n\tcommand('markdown.editor.deleteLeft', 'Delete Left', edit('deleteLeft'), [\n\t\tbinding('h', { ctrl: true }, MACOS),\n\t\tbinding('Backspace', { ctrl: true }, MACOS),\n\t\tbinding('Backspace'),\n\t\tbinding('Backspace', { shift: true }),\n\t]),\n\tcommand('markdown.editor.deleteRight', 'Delete Right', edit('deleteRight'), [\n\t\tbinding('d', { ctrl: true }, MACOS),\n\t\tbinding('Delete', { ctrl: true }, MACOS),\n\t\tbinding('Delete'),\n\t]),\n\tcommand('markdown.editor.deleteWordLeft', 'Delete Word Left', edit('deleteWordLeft'), [\n\t\tbinding('Backspace', { alt: true }, MACOS),\n\t\tbinding('Backspace', { ctrl: true }, NON_MACOS),\n\t]),\n\tcommand('markdown.editor.deleteWordRight', 'Delete Word Right', edit('deleteWordRight'), [\n\t\tbinding('Delete', { alt: true }, MACOS),\n\t\tbinding('Delete', { ctrl: true }, NON_MACOS),\n\t]),\n\tcommand('markdown.editor.deleteLineLeft', 'Delete All Left', edit('deleteLineLeft'), [\n\t\tbinding('Backspace', { meta: true }, MACOS),\n\t]),\n\tcommand('markdown.editor.deleteLineRight', 'Delete All Right', edit('deleteLineRight'), [\n\t\tbinding('Delete', { meta: true }, MACOS),\n\t\tbinding('k', { ctrl: true }, MACOS),\n\t]),\n\tcommand('markdown.editor.undo', 'Undo', history('undo'), [\n\t\tbinding('z', { meta: true }, MACOS),\n\t\tbinding('z', { ctrl: true }, NON_MACOS),\n\t]),\n\tcommand('markdown.editor.redo', 'Redo', history('redo'), [\n\t\tbinding('z', { meta: true, shift: true }, MACOS),\n\t\tbinding('z', { ctrl: true, shift: true }, NON_MACOS),\n\t\tbinding('y', { ctrl: true }, NON_MACOS),\n\t]),\n\tcommand('markdown.editor.insertTab', 'Insert Tab', tab('insert'), [\n\t\tbinding('Tab'),\n\t], 'local'),\n\tcommand('markdown.editor.outdent', 'Outdent', tab('outdent'), [\n\t\tbinding('Tab', { shift: true }),\n\t], 'local'),\n\tcommand('markdown.editor.toggleTabFocus', 'Toggle Tab Key Moves Focus', { kind: 'toggleTabFocus' }, [\n\t\tbinding('m', { ctrl: true }),\n\t], 'local'),\n\tcommand('markdown.editor.smartEnter', 'Insert Paragraph', enter('smartEnter'), [\n\t\tbinding('Enter'),\n\t]),\n\tcommand('markdown.editor.insertHardLineBreak', 'Insert Hard Line Break', enter('insertHardLineBreak'), [\n\t\tbinding('Enter', { shift: true }),\n\t]),\n\tcommand('markdown.editor.insertParagraph', 'Insert Paragraph Without Continuing Markup', enter('insertParagraph'), [\n\t\tbinding('Enter', { meta: true }, MACOS),\n\t\tbinding('Enter', { ctrl: true }),\n\t]),\n];\n"],"names":["MACOS","NON_MACOS","cursor","command","extend","edit","history","tab","enter","binding","key","modifiers","platforms","id","title","action","keybindings","routing","commands"],"mappings":"AA6DA,MAAMA,IAAQ,CAA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,KAAK,EAAE,MAAM,GAAA,GAAQR,CAAS;AAAA,EAAA,CACtC;AAAA,EACDE,EAAQ,wBAAwB,QAAQG,EAAQ,MAAM,GAAG;AAAA,IACxDG,EAAQ,KAAK,EAAE,MAAM,IAAM,OAAO,GAAA,GAAQT,CAAK;AAAA,IAC/CS,EAAQ,KAAK,EAAE,MAAM,IAAM,OAAO,GAAA,GAAQR,CAAS;AAAA,IACnDQ,EAAQ,KAAK,EAAE,MAAM,GAAA,GAAQR,CAAS;AAAA,EAAA,CACtC;AAAA,EACDE,EAAQ,6BAA6B,cAAcI,EAAI,QAAQ,GAAG;AAAA,IACjEE,EAAQ,KAAK;AAAA,EAAA,GACX,OAAO;AAAA,EACVN,EAAQ,2BAA2B,WAAWI,EAAI,SAAS,GAAG;AAAA,IAC7DE,EAAQ,OAAO,EAAE,OAAO,IAAM;AAAA,EAAA,GAC5B,OAAO;AAAA,EACVN,EAAQ,kCAAkC,8BAA8B,EAAE,MAAM,oBAAoB;AAAA,IACnGM,EAAQ,KAAK,EAAE,MAAM,IAAM;AAAA,EAAA,GACzB,OAAO;AAAA,EACVN,EAAQ,8BAA8B,oBAAoBK,EAAM,YAAY,GAAG;AAAA,IAC9EC,EAAQ,OAAO;AAAA,EAAA,CACf;AAAA,EACDN,EAAQ,uCAAuC,0BAA0BK,EAAM,qBAAqB,GAAG;AAAA,IACtGC,EAAQ,SAAS,EAAE,OAAO,IAAM;AAAA,EAAA,CAChC;AAAA,EACDN,EAAQ,mCAAmC,8CAA8CK,EAAM,iBAAiB,GAAG;AAAA,IAClHC,EAAQ,SAAS,EAAE,MAAM,GAAA,GAAQT,CAAK;AAAA,IACtCS,EAAQ,SAAS,EAAE,MAAM,IAAM;AAAA,EAAA,CAC/B;AACF;"}
|
|
1
|
+
{"version":3,"file":"commands.js","sources":["../src/editorCommands.ts"],"sourcesContent":["export type KeyboardPlatform = 'macos' | 'windows' | 'linux';\n\nexport type CursorKeyboardAction =\n\t| 'left'\n\t| 'right'\n\t| 'up'\n\t| 'down'\n\t| 'wordLeft'\n\t| 'wordRight'\n\t| 'visualLineStart'\n\t| 'visualLineEnd'\n\t| 'logicalLineStart'\n\t| 'logicalLineEnd'\n\t| 'documentStart'\n\t| 'documentEnd';\n\nexport type EditKeyboardAction =\n\t| 'deleteLeft'\n\t| 'deleteRight'\n\t| 'deleteWordLeft'\n\t| 'deleteWordRight'\n\t| 'deleteLineLeft'\n\t| 'deleteLineRight'\n\t| 'copyLinesUp'\n\t| 'copyLinesDown'\n\t| 'moveLinesUp'\n\t| 'moveLinesDown'\n\t| 'deleteLines'\n\t| 'joinLines';\n\nexport type HistoryKeyboardAction = 'undo' | 'redo';\nexport type TabKeyboardAction = 'insert' | 'outdent';\n\nexport type EditorKeyboardAction =\n\t| { readonly kind: 'cursor'; readonly command: CursorKeyboardAction; readonly extend: boolean }\n\t| { readonly kind: 'edit'; readonly command: EditKeyboardAction }\n\t| { readonly kind: 'history'; readonly command: HistoryKeyboardAction }\n\t| { readonly kind: 'tab'; readonly command: TabKeyboardAction }\n\t| { readonly kind: 'toggleTabFocus' }\n\t| { readonly kind: 'toggleReadonly' }\n\t| { readonly kind: 'selectAll' }\n\t| { readonly kind: 'enter'; readonly command: 'smartEnter' | 'insertParagraph' | 'insertHardLineBreak' };\n\nexport interface KeyboardModifiers {\n\treadonly shift?: boolean;\n\treadonly alt?: boolean;\n\treadonly ctrl?: boolean;\n\treadonly meta?: boolean;\n}\n\nexport interface EditorCommandKeybinding {\n\treadonly key: string;\n\treadonly modifiers?: KeyboardModifiers;\n\treadonly platforms?: readonly KeyboardPlatform[];\n}\n\nexport interface EditorCommandDefinition {\n\treadonly id: `markdown.editor.${string}`;\n\treadonly title: string;\n\treadonly action: EditorKeyboardAction;\n\treadonly keybindings: readonly EditorCommandKeybinding[];\n\t/**\n\t * Local commands must execute synchronously in the webview instead of being\n\t * forwarded through the VS Code keybinding service.\n\t */\n\treadonly routing?: 'host' | 'local';\n}\n\nconst MACOS = ['macos'] as const;\nconst NON_MACOS = ['windows', 'linux'] as const;\n\nconst cursor = (command: CursorKeyboardAction, extend = false): EditorKeyboardAction => ({\n\tkind: 'cursor',\n\tcommand,\n\textend,\n});\nconst edit = (command: EditKeyboardAction): EditorKeyboardAction => ({ kind: 'edit', command });\nconst history = (command: HistoryKeyboardAction): EditorKeyboardAction => ({ kind: 'history', command });\nconst tab = (command: TabKeyboardAction): EditorKeyboardAction => ({ kind: 'tab', command });\nconst enter = (command: 'smartEnter' | 'insertParagraph' | 'insertHardLineBreak'): EditorKeyboardAction => ({\n\tkind: 'enter',\n\tcommand,\n});\nconst binding = (\n\tkey: string,\n\tmodifiers?: KeyboardModifiers,\n\tplatforms?: readonly KeyboardPlatform[],\n): EditorCommandKeybinding => ({ key, modifiers, platforms });\nconst command = (\n\tid: EditorCommandDefinition['id'],\n\ttitle: string,\n\taction: EditorKeyboardAction,\n\tkeybindings: readonly EditorCommandKeybinding[],\n\trouting: EditorCommandDefinition['routing'] = 'host',\n): EditorCommandDefinition => ({ id, title, action, keybindings, routing });\n\n/**\n * Canonical editor command catalog. Standalone keyboard handling and host\n * integrations derive their command registration and default keybindings from\n * this list.\n */\nexport const commands: readonly EditorCommandDefinition[] = [\n\tcommand('markdown.editor.cursorLeft', 'Move Cursor Left', cursor('left'), [\n\t\tbinding('b', { ctrl: true }, MACOS),\n\t\tbinding('ArrowLeft'),\n\t]),\n\tcommand('markdown.editor.cursorRight', 'Move Cursor Right', cursor('right'), [\n\t\tbinding('f', { ctrl: true }, MACOS),\n\t\tbinding('ArrowRight'),\n\t]),\n\tcommand('markdown.editor.cursorUp', 'Move Cursor Up', cursor('up'), [\n\t\tbinding('p', { ctrl: true }, MACOS),\n\t\tbinding('ArrowUp'),\n\t]),\n\tcommand('markdown.editor.cursorDown', 'Move Cursor Down', cursor('down'), [\n\t\tbinding('n', { ctrl: true }, MACOS),\n\t\tbinding('ArrowDown'),\n\t]),\n\tcommand('markdown.editor.cursorLeftSelect', 'Select Left', cursor('left', true), [\n\t\tbinding('ArrowLeft', { shift: true }),\n\t]),\n\tcommand('markdown.editor.cursorRightSelect', 'Select Right', cursor('right', true), [\n\t\tbinding('ArrowRight', { shift: true }),\n\t]),\n\tcommand('markdown.editor.cursorUpSelect', 'Select Up', cursor('up', true), [\n\t\tbinding('ArrowUp', { shift: true }),\n\t]),\n\tcommand('markdown.editor.cursorDownSelect', 'Select Down', cursor('down', true), [\n\t\tbinding('ArrowDown', { shift: true }),\n\t]),\n\tcommand('markdown.editor.cursorWordLeft', 'Move Cursor Word Left', cursor('wordLeft'), [\n\t\tbinding('ArrowLeft', { alt: true }, MACOS),\n\t\tbinding('ArrowLeft', { ctrl: true }, NON_MACOS),\n\t]),\n\tcommand('markdown.editor.cursorWordRight', 'Move Cursor Word Right', cursor('wordRight'), [\n\t\tbinding('ArrowRight', { alt: true }, MACOS),\n\t\tbinding('ArrowRight', { ctrl: true }, NON_MACOS),\n\t]),\n\tcommand('markdown.editor.cursorWordLeftSelect', 'Select Word Left', cursor('wordLeft', true), [\n\t\tbinding('ArrowLeft', { alt: true, shift: true }, MACOS),\n\t\tbinding('ArrowLeft', { ctrl: true, shift: true }, NON_MACOS),\n\t]),\n\tcommand('markdown.editor.cursorWordRightSelect', 'Select Word Right', cursor('wordRight', true), [\n\t\tbinding('ArrowRight', { alt: true, shift: true }, MACOS),\n\t\tbinding('ArrowRight', { ctrl: true, shift: true }, NON_MACOS),\n\t]),\n\tcommand('markdown.editor.cursorVisualLineStart', 'Move Cursor to Visual Line Start', cursor('visualLineStart'), [\n\t\tbinding('ArrowLeft', { meta: true }, MACOS),\n\t\tbinding('Home'),\n\t]),\n\tcommand('markdown.editor.cursorVisualLineEnd', 'Move Cursor to Visual Line End', cursor('visualLineEnd'), [\n\t\tbinding('ArrowRight', { meta: true }, MACOS),\n\t\tbinding('End'),\n\t]),\n\tcommand('markdown.editor.cursorVisualLineStartSelect', 'Select to Visual Line Start', cursor('visualLineStart', true), [\n\t\tbinding('ArrowLeft', { meta: true, shift: true }, MACOS),\n\t\tbinding('Home', { shift: true }),\n\t]),\n\tcommand('markdown.editor.cursorVisualLineEndSelect', 'Select to Visual Line End', cursor('visualLineEnd', true), [\n\t\tbinding('ArrowRight', { meta: true, shift: true }, MACOS),\n\t\tbinding('End', { shift: true }),\n\t]),\n\tcommand('markdown.editor.cursorLogicalLineStart', 'Move Cursor to Logical Line Start', cursor('logicalLineStart'), [\n\t\tbinding('a', { ctrl: true }, MACOS),\n\t]),\n\tcommand('markdown.editor.cursorLogicalLineEnd', 'Move Cursor to Logical Line End', cursor('logicalLineEnd'), [\n\t\tbinding('e', { ctrl: true }, MACOS),\n\t]),\n\tcommand('markdown.editor.cursorLogicalLineStartSelect', 'Select to Logical Line Start', cursor('logicalLineStart', true), [\n\t\tbinding('a', { ctrl: true, shift: true }, MACOS),\n\t]),\n\tcommand('markdown.editor.cursorLogicalLineEndSelect', 'Select to Logical Line End', cursor('logicalLineEnd', true), [\n\t\tbinding('e', { ctrl: true, shift: true }, MACOS),\n\t]),\n\tcommand('markdown.editor.cursorDocumentStart', 'Move Cursor to Document Start', cursor('documentStart'), [\n\t\tbinding('ArrowUp', { meta: true }, MACOS),\n\t\tbinding('Home', { ctrl: true }, NON_MACOS),\n\t]),\n\tcommand('markdown.editor.cursorDocumentEnd', 'Move Cursor to Document End', cursor('documentEnd'), [\n\t\tbinding('ArrowDown', { meta: true }, MACOS),\n\t\tbinding('End', { ctrl: true }, NON_MACOS),\n\t]),\n\tcommand('markdown.editor.cursorDocumentStartSelect', 'Select to Document Start', cursor('documentStart', true), [\n\t\tbinding('ArrowUp', { meta: true, shift: true }, MACOS),\n\t\tbinding('Home', { ctrl: true, shift: true }, NON_MACOS),\n\t]),\n\tcommand('markdown.editor.cursorDocumentEndSelect', 'Select to Document End', cursor('documentEnd', true), [\n\t\tbinding('ArrowDown', { meta: true, shift: true }, MACOS),\n\t\tbinding('End', { ctrl: true, shift: true }, NON_MACOS),\n\t]),\n\tcommand('markdown.editor.selectAll', 'Select All', { kind: 'selectAll' }, [\n\t\tbinding('a', { meta: true }, MACOS),\n\t\tbinding('a', { ctrl: true }, NON_MACOS),\n\t]),\n\tcommand('markdown.editor.deleteLeft', 'Delete Left', edit('deleteLeft'), [\n\t\tbinding('h', { ctrl: true }, MACOS),\n\t\tbinding('Backspace', { ctrl: true }, MACOS),\n\t\tbinding('Backspace'),\n\t\tbinding('Backspace', { shift: true }),\n\t]),\n\tcommand('markdown.editor.deleteRight', 'Delete Right', edit('deleteRight'), [\n\t\tbinding('d', { ctrl: true }, MACOS),\n\t\tbinding('Delete', { ctrl: true }, MACOS),\n\t\tbinding('Delete'),\n\t]),\n\tcommand('markdown.editor.deleteWordLeft', 'Delete Word Left', edit('deleteWordLeft'), [\n\t\tbinding('Backspace', { alt: true }, MACOS),\n\t\tbinding('Backspace', { ctrl: true }, NON_MACOS),\n\t]),\n\tcommand('markdown.editor.deleteWordRight', 'Delete Word Right', edit('deleteWordRight'), [\n\t\tbinding('Delete', { alt: true }, MACOS),\n\t\tbinding('Delete', { ctrl: true }, NON_MACOS),\n\t]),\n\tcommand('markdown.editor.deleteLineLeft', 'Delete All Left', edit('deleteLineLeft'), [\n\t\tbinding('Backspace', { meta: true }, MACOS),\n\t]),\n\tcommand('markdown.editor.deleteLineRight', 'Delete All Right', edit('deleteLineRight'), [\n\t\tbinding('Delete', { meta: true }, MACOS),\n\t\tbinding('k', { ctrl: true }, MACOS),\n\t]),\n\tcommand('markdown.editor.copyLinesUp', 'Copy Line Up', edit('copyLinesUp'), [\n\t\tbinding('ArrowUp', { alt: true, shift: true }, MACOS),\n\t\tbinding('ArrowUp', { alt: true, shift: true }, ['windows']),\n\t\tbinding('ArrowUp', { ctrl: true, alt: true, shift: true }, ['linux']),\n\t]),\n\tcommand('markdown.editor.copyLinesDown', 'Copy Line Down', edit('copyLinesDown'), [\n\t\tbinding('ArrowDown', { alt: true, shift: true }, MACOS),\n\t\tbinding('ArrowDown', { alt: true, shift: true }, ['windows']),\n\t\tbinding('ArrowDown', { ctrl: true, alt: true, shift: true }, ['linux']),\n\t]),\n\tcommand('markdown.editor.moveLinesUp', 'Move Line Up', edit('moveLinesUp'), [\n\t\tbinding('ArrowUp', { alt: true }),\n\t]),\n\tcommand('markdown.editor.moveLinesDown', 'Move Line Down', edit('moveLinesDown'), [\n\t\tbinding('ArrowDown', { alt: true }),\n\t]),\n\tcommand('markdown.editor.deleteLines', 'Delete Line', edit('deleteLines'), [\n\t\tbinding('k', { meta: true, shift: true }, MACOS),\n\t\tbinding('k', { ctrl: true, shift: true }, NON_MACOS),\n\t]),\n\tcommand('markdown.editor.joinLines', 'Join Lines', edit('joinLines'), [\n\t\tbinding('j', { ctrl: true }, MACOS),\n\t]),\n\tcommand('markdown.editor.toggleLocked', 'Toggle Editing/Locked Mode', { kind: 'toggleReadonly' }, []),\n\tcommand('markdown.editor.undo', 'Undo', history('undo'), [\n\t\tbinding('z', { meta: true }, MACOS),\n\t\tbinding('z', { ctrl: true }, NON_MACOS),\n\t]),\n\tcommand('markdown.editor.redo', 'Redo', history('redo'), [\n\t\tbinding('z', { meta: true, shift: true }, MACOS),\n\t\tbinding('z', { ctrl: true, shift: true }, NON_MACOS),\n\t\tbinding('y', { ctrl: true }, NON_MACOS),\n\t]),\n\tcommand('markdown.editor.insertTab', 'Insert Tab', tab('insert'), [\n\t\tbinding('Tab'),\n\t], 'local'),\n\tcommand('markdown.editor.outdent', 'Outdent', tab('outdent'), [\n\t\tbinding('Tab', { shift: true }),\n\t], 'local'),\n\tcommand('markdown.editor.toggleTabFocus', 'Toggle Tab Key Moves Focus', { kind: 'toggleTabFocus' }, [\n\t\tbinding('m', { ctrl: true }),\n\t], 'local'),\n\tcommand('markdown.editor.smartEnter', 'Insert Paragraph', enter('smartEnter'), [\n\t\tbinding('Enter'),\n\t]),\n\tcommand('markdown.editor.insertHardLineBreak', 'Insert Hard Line Break', enter('insertHardLineBreak'), [\n\t\tbinding('Enter', { shift: true }),\n\t]),\n\tcommand('markdown.editor.insertParagraph', 'Insert Paragraph Without Continuing Markup', enter('insertParagraph'), [\n\t\tbinding('Enter', { meta: true }, MACOS),\n\t\tbinding('Enter', { ctrl: true }),\n\t]),\n];\n"],"names":["MACOS","NON_MACOS","cursor","command","extend","edit","history","tab","enter","binding","key","modifiers","platforms","id","title","action","keybindings","routing","commands"],"mappings":"AAoEA,MAAMA,IAAQ,CAAC,OAAO,GAChBC,IAAY,CAAC,WAAW,OAAO,GAE/BC,IAAS,CAACC,GAA+BC,IAAS,QAAiC;AAAA,EACxF,MAAM;AAAA,EACN,SAAAD;AAAAA,EACA,QAAAC;AACD,IACMC,IAAO,CAACF,OAAuD,EAAE,MAAM,QAAQ,SAAAA,MAC/EG,IAAU,CAACH,OAA0D,EAAE,MAAM,WAAW,SAAAA,MACxFI,IAAM,CAACJ,OAAsD,EAAE,MAAM,OAAO,SAAAA,MAC5EK,IAAQ,CAACL,OAA6F;AAAA,EAC3G,MAAM;AAAA,EACN,SAAAA;AACD,IACMM,IAAU,CACfC,GACAC,GACAC,OAC8B,EAAE,KAAAF,GAAK,WAAAC,GAAW,WAAAC,MAC3CT,IAAU,CACfU,GACAC,GACAC,GACAC,GACAC,IAA8C,YAChB,EAAE,IAAAJ,GAAI,OAAAC,GAAO,QAAAC,GAAQ,aAAAC,GAAa,SAAAC,EAAA,IAOpDC,IAA+C;AAAA,EAC3Df,EAAQ,8BAA8B,oBAAoBD,EAAO,MAAM,GAAG;AAAA,IACzEO,EAAQ,KAAK,EAAE,MAAM,GAAA,GAAQT,CAAK;AAAA,IAClCS,EAAQ,WAAW;AAAA,EAAA,CACnB;AAAA,EACDN,EAAQ,+BAA+B,qBAAqBD,EAAO,OAAO,GAAG;AAAA,IAC5EO,EAAQ,KAAK,EAAE,MAAM,GAAA,GAAQT,CAAK;AAAA,IAClCS,EAAQ,YAAY;AAAA,EAAA,CACpB;AAAA,EACDN,EAAQ,4BAA4B,kBAAkBD,EAAO,IAAI,GAAG;AAAA,IACnEO,EAAQ,KAAK,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B,GAAG;AAAA,IAClHC,EAAQ,SAAS,EAAE,MAAM,GAAA,GAAQT,CAAK;AAAA,IACtCS,EAAQ,SAAS,EAAE,MAAM,IAAM;AAAA,EAAA,CAC/B;AACF;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -567,6 +567,10 @@ declare interface CompleteHtmlCommentSource extends HtmlCommentSourceBase {
|
|
|
567
567
|
readonly trailingWhitespace: string;
|
|
568
568
|
}
|
|
569
569
|
|
|
570
|
+
export declare const copyLinesDown: EditCommand;
|
|
571
|
+
|
|
572
|
+
export declare const copyLinesUp: EditCommand;
|
|
573
|
+
|
|
570
574
|
/**
|
|
571
575
|
* A {@link MonacoSyntaxHighlighter} preloaded with a handful of common Monarch
|
|
572
576
|
* grammars (plus the usual short aliases). Unknown languages fall back to an
|
|
@@ -683,6 +687,8 @@ export declare const deleteLineLeft: EditCommand;
|
|
|
683
687
|
|
|
684
688
|
export declare const deleteLineRight: EditCommand;
|
|
685
689
|
|
|
690
|
+
export declare const deleteLines: EditCommand;
|
|
691
|
+
|
|
686
692
|
export declare const deleteRight: EditCommand;
|
|
687
693
|
|
|
688
694
|
export declare const deleteWordLeft: EditCommand;
|
|
@@ -874,7 +880,7 @@ export declare type EditCommand = (ctx: CursorCommandContext) => {
|
|
|
874
880
|
readonly selection: Selection_2;
|
|
875
881
|
} | undefined;
|
|
876
882
|
|
|
877
|
-
export declare type EditKeyboardAction = 'deleteLeft' | 'deleteRight' | 'deleteWordLeft' | 'deleteWordRight' | 'deleteLineLeft' | 'deleteLineRight';
|
|
883
|
+
export declare type EditKeyboardAction = 'deleteLeft' | 'deleteRight' | 'deleteWordLeft' | 'deleteWordRight' | 'deleteLineLeft' | 'deleteLineRight' | 'copyLinesUp' | 'copyLinesDown' | 'moveLinesUp' | 'moveLinesDown' | 'deleteLines' | 'joinLines';
|
|
878
884
|
|
|
879
885
|
export declare interface EditorCommandDefinition {
|
|
880
886
|
readonly id: `markdown.editor.${string}`;
|
|
@@ -1047,6 +1053,8 @@ export declare type EditorKeyboardAction = {
|
|
|
1047
1053
|
readonly command: TabKeyboardAction;
|
|
1048
1054
|
} | {
|
|
1049
1055
|
readonly kind: 'toggleTabFocus';
|
|
1056
|
+
} | {
|
|
1057
|
+
readonly kind: 'toggleReadonly';
|
|
1050
1058
|
} | {
|
|
1051
1059
|
readonly kind: 'selectAll';
|
|
1052
1060
|
} | {
|
|
@@ -1122,6 +1130,8 @@ export declare class EditorModel {
|
|
|
1122
1130
|
* and the next content-producing edit.
|
|
1123
1131
|
*/
|
|
1124
1132
|
readonly pendingParagraph: ISettableObservable<PendingParagraph | undefined, void>;
|
|
1133
|
+
/** Switches between editing and locked mode and clears transient edit intent. */
|
|
1134
|
+
toggleReadonlyMode(): void;
|
|
1125
1135
|
readonly cursorOffset: IObservableWithChange<number | undefined, void>;
|
|
1126
1136
|
readonly cursorPosition: IObservableWithChange<CursorPosition | undefined, void>;
|
|
1127
1137
|
/**
|
|
@@ -2159,6 +2169,8 @@ export declare interface ISyntaxHighlighterDocument extends IDisposable {
|
|
|
2159
2169
|
readonly snapshot: IObservableWithChange<ISyntaxHighlightedSnapshot, LengthEdit>;
|
|
2160
2170
|
}
|
|
2161
2171
|
|
|
2172
|
+
export declare const joinLines: EditCommand;
|
|
2173
|
+
|
|
2162
2174
|
export declare interface KeyboardBinding {
|
|
2163
2175
|
readonly key: string;
|
|
2164
2176
|
readonly modifiers?: KeyboardModifiers;
|
|
@@ -2571,6 +2583,10 @@ export declare class MonacoSyntaxHighlighter implements ISyntaxHighlighter {
|
|
|
2571
2583
|
private _tokenizerFor;
|
|
2572
2584
|
}
|
|
2573
2585
|
|
|
2586
|
+
export declare const moveLinesDown: EditCommand;
|
|
2587
|
+
|
|
2588
|
+
export declare const moveLinesUp: EditCommand;
|
|
2589
|
+
|
|
2574
2590
|
/**
|
|
2575
2591
|
* Default strategy: handle the browser's native `copy`/`cut`/`paste` events,
|
|
2576
2592
|
* reading and writing the synchronous {@link ClipboardEvent.clipboardData}.
|