mirror of
https://github.com/logseq/logseq.git
synced 2026-04-25 22:54:48 +00:00
Split out command and category descs
Move them to a more appropriate ns that is just dictionary focused. This _majorly_ slims down dependencies for the main translation ns Also: - add tests - make medley requires consistent - alter spec to reflect how command data is actually being used in command palette component - add basic translation tests
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
[frontend.handler.notification :as notifications]
|
||||
[camel-snake-kebab.core :as csk]
|
||||
[frontend.state :as state]
|
||||
[medley.core :as md]
|
||||
[medley.core :as medley]
|
||||
[frontend.fs :as fs]
|
||||
[electron.ipc :as ipc]
|
||||
[cljs-bean.core :as bean]
|
||||
@@ -234,7 +234,7 @@
|
||||
|
||||
(defn unregister-plugin-slash-command
|
||||
[pid]
|
||||
(swap! state/state md/dissoc-in [:plugin/installed-commands (keyword pid)]))
|
||||
(swap! state/state medley/dissoc-in [:plugin/installed-commands (keyword pid)]))
|
||||
|
||||
(def keybinding-mode-handler-map
|
||||
{:global :shortcut.handler/editor-global
|
||||
@@ -278,7 +278,7 @@
|
||||
|
||||
(defn unregister-plugin-simple-command
|
||||
[pid]
|
||||
(swap! state/state md/dissoc-in [:plugin/simple-commands (keyword pid)]))
|
||||
(swap! state/state medley/dissoc-in [:plugin/simple-commands (keyword pid)]))
|
||||
|
||||
(defn register-plugin-ui-item
|
||||
[pid {:keys [type] :as opts}]
|
||||
@@ -498,7 +498,7 @@
|
||||
;; effects
|
||||
(unregister-plugin-themes pid)
|
||||
;; plugins
|
||||
(swap! state/state md/dissoc-in [:plugin/installed-plugins pid])
|
||||
(swap! state/state medley/dissoc-in [:plugin/installed-plugins pid])
|
||||
;; commands
|
||||
(clear-commands! pid))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user