mirror of https://github.com/logseq/logseq
Adds :outliner/block-title-collapse-enabled? configuration option
parent
96b1c6788b
commit
fc644e207b
|
@ -3385,9 +3385,11 @@
|
||||||
(and
|
(and
|
||||||
(not (util/collapsed? block))
|
(not (util/collapsed? block))
|
||||||
(or (db-model/has-children? block-id)
|
(or (db-model/has-children? block-id)
|
||||||
(block-with-title? (:block/format block)
|
(and
|
||||||
(:block/content block)
|
(:outliner/block-title-collapse-enabled? (state/get-config))
|
||||||
semantic?)))
|
(block-with-title? (:block/format block)
|
||||||
|
(:block/content block)
|
||||||
|
semantic?))))
|
||||||
false))))
|
false))))
|
||||||
|
|
||||||
(defn all-blocks-with-level
|
(defn all-blocks-with-level
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{:meta/version 1
|
{:meta/version 1
|
||||||
|
|
||||||
;; Currently, we support either "Markdown" or "Org".
|
;; Currently, we support either "Markdown" or "Org".
|
||||||
;; This can overwrite your global preference so that
|
;; This can overwrite your global preference so that
|
||||||
;; maybe your personal preferred format is Org but you'd
|
;; maybe your personal preferred format is Org but you'd
|
||||||
|
@ -144,6 +144,13 @@
|
||||||
:commands
|
:commands
|
||||||
[]
|
[]
|
||||||
|
|
||||||
|
;; By default, a block can only be collapsed if it has some children.
|
||||||
|
;; `:outliner/block-title-collapse-enabled? true` enables a block with a title
|
||||||
|
;; (multiple lines) can be collapsed too. For example:
|
||||||
|
;; - block title
|
||||||
|
;; block content
|
||||||
|
:outliner/block-title-collapse-enabled? false
|
||||||
|
|
||||||
;; Macros replace texts and will make you more productive.
|
;; Macros replace texts and will make you more productive.
|
||||||
;; For example:
|
;; For example:
|
||||||
;; Add this to the macros below:
|
;; Add this to the macros below:
|
||||||
|
|
Loading…
Reference in New Issue