Install and uninstall plugins from file

Change plugins.edn to key off id as it is unique and all operations
work off of it.
Note: there are still some bugs with certain plugin installs
This commit is contained in:
Gabriel Horner
2022-10-10 11:43:39 -04:00
parent da6c617a5b
commit bf79db9d54
8 changed files with 191 additions and 64 deletions

View File

@@ -14,6 +14,7 @@
[frontend.handler.plugin :as plugin-handler]
[frontend.handler.export :as export-handler]
[frontend.handler.whiteboard :as whiteboard-handler]
[frontend.handler.plugin-config :as plugin-config]
[frontend.modules.shortcut.dicts :as dicts]
[frontend.modules.shortcut.before :as m]
[frontend.state :as state]
@@ -408,6 +409,10 @@
:inactive (not plugin-handler/lsp-enabled?)
:fn plugin-handler/goto-plugins-dashboard!}
:ui/install-plugins-from-file {:binding false
:inactive (not plugin-handler/lsp-enabled?)
;; TODO: Remove dev convenience
:fn (fn [] (plugin-config/open-sync-modal))}
:editor/toggle-open-blocks {:binding "t o"
:fn editor-handler/toggle-open!}
@@ -574,6 +579,7 @@
:ui/toggle-wide-mode
:ui/select-theme-color
:ui/goto-plugins
:ui/install-plugins-from-file
:editor/toggle-open-blocks
:ui/toggle-cards
:git/commit])