Skip to content
This repository has been archived by the owner on Oct 6, 2024. It is now read-only.

Enhancement: Region-folding #44

Closed
Hicsy opened this issue Sep 26, 2020 · 2 comments
Closed

Enhancement: Region-folding #44

Hicsy opened this issue Sep 26, 2020 · 2 comments

Comments

@Hicsy
Copy link
Contributor

Hicsy commented Sep 26, 2020

Gday

PR:

My pull-request with the solution can be found here: #43

Proposal:

Other languages generally have regions folding marked by a comment which starts with the work region .
This will then be folded up until the corresponding comment beginning with endregion.

I understand that this might already be implemented elsewhere in your code that i missed, or perhaps it has been left out for a reason (stale request upstream, awaiting official input, awaiting v2 etc etc).
Feel free to ping me if you need any further clarification.

I have provided examples in the Pull Request.

Cheers

@Hicsy
Copy link
Contributor Author

Hicsy commented Sep 26, 2020

Potential minor issue:

If a madman changes their comment indicator this will obviously not be usable by that script.
This is no issue in the upcoming AHKv2 as they removed this dangerous Directive.

@cweijan
Copy link
Owner

cweijan commented Sep 27, 2020

Has been merge, will release on next version.

@cweijan cweijan closed this as completed Sep 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants