Right now, the side tree only updates on a timer, I assume because it would be prohibitively expensive to update after every keystroke. But it wouldn't be so expensive to update immediately after every buffer switch.
This would require only a small amount of code. The core would look something like this:
(defun +org-sidetree-maybe-update ()
(when (eq 'org-mode major-mode)
(org-side-tree-update)))
(add-hook 'window-configuration-change-hook 'org-sidetree-maybe-update)
There would also need to be a configuration variable and maybe some light integration logic.
Right now, the side tree only updates on a timer, I assume because it would be prohibitively expensive to update after every keystroke. But it wouldn't be so expensive to update immediately after every buffer switch.
This would require only a small amount of code. The core would look something like this:
There would also need to be a configuration variable and maybe some light integration logic.