dk.salza.liq.extensions.folding

collapse-all

(collapse-all sl)

collapse-all-level

(collapse-all-level sl level)

context-collapse-toggle

(context-collapse-toggle sl)

cycle-level-fold

(cycle-level-fold sl)

expand-all

(expand-all sl)

fold-all-def

(fold-all-def sl)

fold-def

(fold-def sl)

fold-level

(fold-level sl)

get-headline-level

(get-headline-level sl)
Returns the headline level of the current line.
Starting with # is level 1, ## is level 2 etc.
If there is no headline, e.g no # then result is 0.

line-folded?

(line-folded? sl)
Returns if the line is folded, somewhere.
If there is hidden content somewhere on the line.

sublevel-folded?

(sublevel-folded? sl)

unfold-all

(unfold-all sl)

unfold-all-level

(unfold-all-level sl level)

unfold-line

(unfold-line sl)