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

Support a regular expression for preceding_text #6

Open
FichteFoll opened this issue Aug 25, 2023 · 0 comments
Open

Support a regular expression for preceding_text #6

FichteFoll opened this issue Aug 25, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@FichteFoll
Copy link

FichteFoll commented Aug 25, 2023

This isn't a huge priority, but I wanted to list it here as food for thought.

I'd like to only hide the class attribute text if it doesn't stand on its own line already, because that indicates that I am having exactly one attribute per line. In order to do that, I could match for \S\s+class="$, but the current preceding_text setting does not support this kind of flexibility.

Example:

                <span class="text-danger">
                    some text be here. the class above should be folded
                </span>

                <span 
                    class="text-danger"
                >
                    more text. here, the class should not be folded
                </span>
@predragnikolic predragnikolic added the enhancement New feature or request label Dec 12, 2023
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