feat: wip, command palette

This commit is contained in:
Weihua Lu
2021-08-27 18:29:33 +08:00
committed by Tienson Qin
parent 7a2fe9299f
commit 2569611de1
8 changed files with 139 additions and 2 deletions

View File

@@ -322,7 +322,12 @@
;; always overrides the copy due to "mod+c mod+s"
{:misc/copy
{:binding "mod+c"
:fn (fn [] (js/document.execCommand "copy"))}}
:fn (fn [] (js/document.execCommand "copy"))}
:command-palette/toggle
{:desc "Toggle command palette"
:binding "mod+shift+p"
:fn (fn [] (state/toggle! :ui/command-palette-open?))}}
:shortcut.handler/global-non-editing-only
^{:before m/enable-when-not-editing-mode!}