emacs - Org-mode: How do I fold all levels but the current in a sparse tree? -


after doing c-c / create sparse tree, move cursor interesting place , c-c c-c remove highlights i'd able collapse levels current one.

is there way doing it? i'd maintain cursor positioned in same place.

you can call org-cycle c-u prefix collapse trees , call org-reveal: c-u <tab> c-c c-r. (the prefix cycles whole buffer between 3 states, after creating sparse tree, seems go overview state first.) since you'll adding c-c c-c @ either end remove highlights, wrap of single command give shorter keybinding.

(defun org-sparse-finish ()   (interactive)   (org-remove-occur-highlights)   (org-overview)   (org-reveal)) 

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -