mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
+evil/fold-toggle: don't hide recursively
Otherwise sub-entries will be folded and remain folded when unfolding entries.
This commit is contained in:
@ -42,7 +42,10 @@
|
|||||||
(save-excursion
|
(save-excursion
|
||||||
(cond ((+evil--vimish-fold-p) (vimish-fold-toggle))
|
(cond ((+evil--vimish-fold-p) (vimish-fold-toggle))
|
||||||
((+evil--hideshow-fold-p) (+evil-from-eol (hs-toggle-hiding)))
|
((+evil--hideshow-fold-p) (+evil-from-eol (hs-toggle-hiding)))
|
||||||
((+evil--outline-fold-p) (outline-toggle-children)))))
|
((+evil--outline-fold-p)
|
||||||
|
(cl-letf (((symbol-function #'outline-hide-subtree)
|
||||||
|
(symbol-function #'outline-hide-entry)))
|
||||||
|
(outline-toggle-children))))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +evil/fold-open ()
|
(defun +evil/fold-open ()
|
||||||
|
Reference in New Issue
Block a user