enhance: add an option to expand block references

This commit is contained in:
Tienson Qin
2021-06-23 11:16:07 +08:00
parent 7d4bf9ce93
commit 0fdd1275d1
4 changed files with 43 additions and 3 deletions

View File

@@ -1261,6 +1261,14 @@
(get-in @state [:me :settings :start-of-week])
6))
(defn get-ref-open-blocks-level
[]
(or
(when-let [value (:ref/default-open-blocks-level (get-config))]
(when (integer? value)
value))
2))
(defn get-events-chan
[]
(:system/events @state))