Is there a way to fold text where begin and end lines contain the same text? #122
RichardOtter
started this conversation in
Issue Triage
Replies: 2 comments
-
|
If you don't know the separator, you can try: But it can be resource heavy. If you know it, try: https://github.com/zokugun/vscode-explicit-folding/blob/master/docs/rules/separator.md |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Thanks much.
Looking back at the docs, it should have been obvious.
Maybe a couple more examples in the docs would have helped.
Richard
…On Tue, Jul 1, 2025 at 3:18 PM Baptiste Augrain ***@***.***> wrote:
If you don't know the separator, you can try:
{
"beginRegex": "^([\\w\\s]+)$",
"endRegex": "\\1",
"consumeEnd": false,
}
But it can be resource heavy.
https://github.com/zokugun/vscode-explicit-folding/blob/master/docs/rules/begin-end.md
If you know it, try:
{
"separatorRegex": "^Test Case$"
}
https://github.com/zokugun/vscode-explicit-folding/blob/master/docs/rules/separator.md
—
Reply to this email directly, view it on GitHub
<#122 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6QSNM5BRMR25CBSU2QLWTT3GMCMPAVCNFSM6AAAAACASHWRVKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGNRTGM4DSMA>
.
You are receiving this because you authored the thread.Message ID:
<zokugun/vscode-explicit-folding/repo-discussions/122/comments/13633890@
github.com>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to fold text where begin and end lines contain the same text?
e.g. for a plaintext file
line 1
Test Case
multiple lines
multiple lines
Test Case
multiple lines
multiple lines
Test Case
folded to:
line 1
Test Case ...
Test Case ...
Beta Was this translation helpful? Give feedback.
All reactions