enhance: initial support for export+import of current page

Works across graphs for basic top-level blocks. Generalized import
command to work with block+page and other future exports
This commit is contained in:
Gabriel Horner
2025-01-31 20:09:17 -05:00
parent a88c04fb8e
commit 44cf521d3a
7 changed files with 136 additions and 89 deletions

View File

@@ -484,7 +484,7 @@
(defmethod handle-action :trigger [_ state _event]
(let [command (some-> state state->highlighted-item :source-command)
dont-close-commands #{:graph/open :graph/remove :dev/replace-graph-with-db-file
:ui/toggle-settings :go/flashcards :dev/import-block-data}]
:ui/toggle-settings :go/flashcards :dev/import-edn-data}]
(when-let [action (:action command)]
(action)
(when-not (contains? dont-close-commands (:id command))