-
-
Notifications
You must be signed in to change notification settings - Fork 116
Preliminary code for unfolding org headline branch. #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preliminary code for unfolding org headline branch. #33
Conversation
If something like this could be done for the general outline mode I would like that very much. I mean this folding/unfolding is not org-mode specific. |
I introduced the function I need to make some modifications for the case with |
@Luis-Henriquez-Perez I wonder how general this is. There are many libraries which offer code folding, origami, outshine, vimish-fold etc. Do they all use the same outline mechanism internally? Furthermore we would need something which opens and closes all the headings after moving to another position during preview - Save current outline state, open, restore. Right now I have |
Outshine folds work with outline commands. I'm not certain about outshine and vimish fold.
Ideally, the unfolding shouldn't happen during preview. The preview should stay the same. It should happen after the user has selected where they want to go. |
I resolved this now. I am using the same mechanism as isearch. This should be compatible with everything or at least it is not the fault of consult, if something is not compatible.
With the current implementation the unfolding happens also during preview and is reset afterwards. I like it this way. But we can also make the behavior configurable if you prefer to not have unfolding during preview. PR welcome in that case I guess :) |
No description provided.