feat: add "add to favorites" to command palette

This commit is contained in:
Devon Zuegel
2021-12-06 21:55:29 -05:00
committed by Tienson Qin
parent 96a449dc7e
commit d43be37b16
2 changed files with 15 additions and 1 deletions

View File

@@ -366,6 +366,10 @@
:binding "t f"
:fn ui-handler/toggle-contents!}
:command/add-to-favorites {:desc "Add to/remove from favorites"
:binding "mod+shift+f"
:fn #((page-handler/toggle-favorite!))}
:editor/open-file-in-default-app {:desc "Open file in default app"
:binding "o f"
:fn page-handler/open-file-in-default-app}
@@ -477,7 +481,8 @@
:editor/copy
:editor/cut
:editor/undo
:editor/redo])
:editor/redo
:command/add-to-favorites])
(with-meta {:before m/enable-when-not-component-editing!}))
:shortcut.handler/global-prevent-default