enhance(ux): management for the property shortcuts in the global shortcuts module

This commit is contained in:
charlie
2024-07-04 18:14:58 +08:00
parent a8e7e45170
commit d4e8f1d90c
8 changed files with 47 additions and 39 deletions

View File

@@ -348,6 +348,21 @@
(when e (.preventDefault e))
(state/pub-event! [:editor/new-property {}]))}
:editor/add-block-deadline {:binding "b d"
:selection? true
:fn (fn []
(state/pub-event! [:editor/new-property {:property-key "Deadline"}]))}
:editor/add-block-status {:binding "b s"
:selection? true
:fn (fn []
(state/pub-event! [:editor/new-property {:property-key "Status"}]))}
:editor/add-block-priority {:binding "b p"
:selection? true
:fn (fn []
(state/pub-event! [:editor/new-property {:property-key "Priority"}]))}
:ui/toggle-brackets {:binding "mod+c mod+b"
:fn config-handler/toggle-ui-show-brackets!}
@@ -754,6 +769,9 @@
:editor/copy-current-file
:editor/copy-page-url
:editor/new-whiteboard
:editor/add-block-deadline
:editor/add-block-status
:editor/add-block-priority
:ui/toggle-wide-mode
:ui/select-theme-color
:ui/goto-plugins
@@ -870,7 +888,11 @@
:editor/select-parent
:editor/select-block-up
:editor/select-block-down
:editor/delete-selection]
:editor/delete-selection
:editor/add-property
:editor/add-block-deadline
:editor/add-block-status
:editor/add-block-priority]
:shortcut.category/toggle
[:ui/toggle-help