mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 02:16:30 +00:00
enhance: highlight all blocks with the same id when pressing esc
This commit is contained in:
@@ -1062,10 +1062,9 @@
|
||||
|
||||
(defn select-block!
|
||||
[block-uuid]
|
||||
(when-let [block (-> (str block-uuid)
|
||||
(js/document.getElementsByClassName)
|
||||
first)]
|
||||
(state/exit-editing-and-set-selected-blocks! [block])))
|
||||
(let [blocks (js/document.getElementsByClassName (str block-uuid))]
|
||||
(when (seq blocks)
|
||||
(state/exit-editing-and-set-selected-blocks! blocks))))
|
||||
|
||||
(defn- blocks-with-level
|
||||
"Should be sorted already."
|
||||
|
||||
Reference in New Issue
Block a user