You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
org-ol-tree has a great feature prefix to narrow to buffer. But when you save or open the org-ol-tree in narrow state, it throws an error (treemacs related). It should probably widen on refresh/build actions and possibly narrow it back on the buffer. My lisp is limited but I found this:
(defun narrow-p ()
"Return t if a buffer is narrowed"
(not (equal (- (point-max) (point-min)) (buffer-size))))
and adding this to org-ol-tree ()
(if (narrow-p)
(widen))
Another option might also be to add an org-hook to widen the buffer prior to saving it, and narrow it later. What do you think?
The text was updated successfully, but these errors were encountered:
Hello,
org-ol-tree has a great feature prefix to narrow to buffer. But when you save or open the org-ol-tree in narrow state, it throws an error (treemacs related). It should probably widen on refresh/build actions and possibly narrow it back on the buffer. My lisp is limited but I found this:
and adding this to
org-ol-tree ()
Another option might also be to add an org-hook to widen the buffer prior to saving it, and narrow it later. What do you think?
The text was updated successfully, but these errors were encountered: