mirror of
https://github.com/logseq/logseq.git
synced 2026-05-02 18:06:32 +00:00
enhance(ux): polish workflow for the code type block
This commit is contained in:
@@ -164,6 +164,7 @@
|
||||
:editor/cursor-range (atom nil)
|
||||
:editor/container-id (atom nil)
|
||||
:editor/next-edit-block (atom nil)
|
||||
:editor/pending-type-block {}
|
||||
|
||||
:selection/mode (atom false)
|
||||
;; Warning: blocks order is determined when setting this attribute
|
||||
@@ -2398,6 +2399,12 @@ Similar to re-frame subscriptions"
|
||||
[]
|
||||
(:ui/handbooks-open? @state))
|
||||
|
||||
(defn set-pending-type-block!
|
||||
[block]
|
||||
(when block
|
||||
(set-state! :editor/pending-type-block
|
||||
{:block block :at (js/Date.now)})))
|
||||
|
||||
(defn get-handbook-route-chan
|
||||
[]
|
||||
(:handbook/route-chan @state))
|
||||
|
||||
Reference in New Issue
Block a user