-
Notifications
You must be signed in to change notification settings - Fork 25
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
Add option to ignore comments when aligning #46
Comments
it seems a good idea, but i don't want to complicate the already complicated input...any suggestions? |
Hm, well, so currently the default settings are:
Perhaps introduce a new config
Not quite sure how to approach "multiline ignores" though? Perhaps a separate configuration, or merged into "ignored_patterns":
Thoughts? |
The above approach is also a potential solution for #45, i.e. one could specify an "ignore pattern" for |
i will give it a thought. |
Hey Randy - any thoughts yet? |
I think your suggestion does make sense. But I will be very busy in the following 2 months and I am afraid that I won't have time to implement it in a short time. A pull request is appreciated. |
Hey Randy -- I'd really like to help but I'm also very busy lately. Still very interested in this feature if anyone else is reading this and fancies putting together a PR. I'm happy to help test/code review. I just don't have the time to put it together from scratch myself. [edit] oops, didn't mean to close the issue! re-opened. |
Currently when selecting blocks of texts and hitting my AlignTab keybind, if there are any comments, they get aligned along with the actual code.
It'd be great to add an option to "ignore comments" intelligently (e.g. // or # etc. depending on the language) when aligning.
Thanks
The text was updated successfully, but these errors were encountered: