Skip to content
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

Feature request: outline-cycle and outline-cycle-buffer equivalents? #29

Open
indigoviolet opened this issue Aug 11, 2022 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@indigoviolet
Copy link

Thank you for this package!

Is it possible to create ts-fold equivalents for outline-cycle(-buffer)?

@jcs090218
Copy link
Member

Thanks for the feature request! ❤️

This looks interesting, seems like a good feature! I might need to further research on the feature itself (sorry, I don't have enough experience on outline-cycle(-buffer), etc). If you would like to boost up the progress on this feature request, feel free to paste/post any useful information to this thread! Maybe a video describe what exactly you wish to see, etc. 👍

@jcs090218 jcs090218 added the enhancement New feature or request label Aug 12, 2022
@indigoviolet
Copy link
Author

Sure, here's a gif (see the modeline for what commands are being executed):

output-2022-08-11-23:58:51

It's a straightforward but useful feature. outline-cycle switches through three states of collapsed-ness for the current node: hide-all, only-headings, show-all. outline-cycle-buffer does this for all nodes in the buffer.

I think the rough equivalent for outline-cycle would be ts-fold-close -> ts-fold-open -> ts-fold-open-recursively, and outline-cycle-buffer would be the corresponding -all functions.

The benefit is that with two keybindings, one for outline-cycle and one for outline-cycle-buffer I can usually achieve the folding state I want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants