Browse Source

enhance(ux): add shortcut for the cmdk themes picker

charlie 1 year ago
parent
commit
c8bf09b131
2 changed files with 8 additions and 0 deletions
  1. 7 0
      src/main/frontend/modules/shortcut/config.cljs
  2. 1 0
      src/resources/dicts/en.edn

+ 7 - 0
src/main/frontend/modules/shortcut/config.cljs

@@ -354,8 +354,13 @@
 
    :go/search                               {:binding "mod+k"
                                              :fn      #(search :global)}
+
+   :go/search-themes                        {:binding "mod+shift+i"
+                                             :fn      #(search :themes)}
+
    :command-palette/toggle                  {:binding "mod+shift+p"
                                              :fn      #(search :commands)}
+
    :go/search-in-page                       {:binding "mod+shift+k"
                                              :fn      #(search :current-page)}
 
@@ -706,6 +711,7 @@
             :ui/toggle-brackets
             :go/search-in-page
             :go/search
+            :go/search-themes
             :go/electron-find-in-page
             :go/electron-jump-to-the-next
             :go/electron-jump-to-the-previous
@@ -773,6 +779,7 @@
   (atom
     {:shortcut.category/basics
      [:go/search
+      :go/search-themes
       :editor/new-block
       :editor/new-line
       :editor/indent

+ 1 - 0
src/resources/dicts/en.edn

@@ -752,6 +752,7 @@
   :go/electron-jump-to-the-next   "Jump to the next match to your Find bar search"
   :go/electron-jump-to-the-previous "Jump to the previous match to your Find bar search"
   :go/search                      "Search pages and blocks"
+  :go/search-themes               "Search themes"
   :go/search-in-page              "Search blocks in page"
   :command-palette/toggle         "Search commands"
   :go/journals                    "Go to journals"