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

Fold using virtual text #189

Closed
1 task done
kkharji opened this issue Nov 9, 2021 · 3 comments
Closed
1 task done

Fold using virtual text #189

kkharji opened this issue Nov 9, 2021 · 3 comments
Assignees
Labels
feature Issues related to feature proposals. Please attach a module.

Comments

@kkharji
Copy link
Contributor

kkharji commented Nov 9, 2021

Issues

  • I have checked existing issues and there are no existing ones with the same request.

Feature description

I'd like to see the highlights consistent across heading when it's folded. #157 made icon possible. but using virtual may enable having custom highlights and highlights that match the heading highlights. and perhaps show @document.meta is Meta

Help

Yes

Implementation help

Not sure yet, I never worked with virtual text before but first step is to set foldtext to empty string.

@vhyrro
Copy link
Member

vhyrro commented Nov 9, 2021

To my knowledge this unfortunately is not possible (unless someone proves me wrong). I've tried placing virtual text over folds but that is very odd to deal with and I don't even know whether it works :(

@kkharji
Copy link
Contributor Author

kkharji commented Nov 9, 2021

To my knowledge this unfortunately is not possible (unless someone proves me wrong). I've tried placing virtual text over folds but that is very odd to deal with and I don't even know whether it works :(

hmmm even when the foldtext is empty string?, I never said it will be easy 😆 but I intend to work on it soon.

@vhyrro
Copy link
Member

vhyrro commented Nov 9, 2021

Sure thing! If it ends up working then imma be impressed 😳. Let me know if you manage to brew something up :)

@mrossinek mrossinek added Category::UI feature Issues related to feature proposals. Please attach a module. labels Nov 9, 2021
@danymat danymat changed the title [FEATURE REQUEST] fold using virtual text Fold using virtual text Dec 8, 2021
@danymat danymat closed this as completed Jan 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Issues related to feature proposals. Please attach a module.
Projects
None yet
Development

No branches or pull requests

4 participants