We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45e5485 commit 028a77bCopy full SHA for 028a77b
src/views/CodemirrorEditor.vue
@@ -231,9 +231,12 @@ function initEditor() {
231
const selected = editor.getSelection()
232
editor.replaceSelection(`~~${selected}~~`)
233
},
234
- [`${ctrlKey}-K`]: function italic(editor) {
+ [`${ctrlKey}-K`]: function link(editor) {
235
236
editor.replaceSelection(`[${selected}]()`)
237
+ // now will slightly move the cursor to the left to fill in the link
238
+ const { line, ch } = editor.getCursor()
239
+ editor.setCursor({ line, ch: ch - 1 })
240
241
[`${ctrlKey}-E`]: function code(editor) {
242
0 commit comments