feat: add new command :editor/replace-block-reference-at-point

binding to 'ctrl+c ctrl+c'
This commit is contained in:
rcmerci
2021-06-20 23:05:56 +08:00
committed by Tienson Qin
parent 059943db17
commit 6d4bb1422b
2 changed files with 22 additions and 2 deletions

View File

@@ -146,7 +146,11 @@
:editor/backward-kill-word
{:desc "Kill a word backwards"
:binding (if mac? false "alt+w")
:fn editor-handler/backward-kill-word}}
:fn editor-handler/backward-kill-word}
:editor/replace-block-reference-at-point
{:desc "Replace block reference with its content at point"
:binding "ctrl+c ctrl+c"
:fn editor-handler/replace-block-reference-with-content-at-point}}
:shortcut.handler/editor-global
^{:before m/enable-when-not-component-editing!}
@@ -376,7 +380,8 @@
:editor/forward-word
:editor/backward-word
:editor/forward-kill-word
:editor/backward-kill-word]
:editor/backward-kill-word
:editor/replace-block-reference-at-point]
:shortcut.category/block-selection
^{:doc "Block selection (press Esc to quit selection)"}