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

Please bring back old feature of having the option to have comments left-padded with an extra space #1788

Open
mogando668 opened this issue Dec 27, 2024 · 0 comments
Labels
feature feature requests from users

Comments

@mogando668
Copy link

Current issue

Maybe languages that begin comments with // or /* are happy with no extra padding, which is totally fine by me - everyone have their own favs. What I didn't understand was why CotEditor felt the need to remove that configuration option. Because for languages that begin comments with #, having no padding makes for rather serious visual clutter, e.g.

#GCD-based filtering has been benchmarked to be significantly slower
#than applying the psi() Reduced-totient aka Carmichael-lambda
#function [oeis.org/A002322], primarily due to universal exponent
#of the combined modulus being a known constant, enabling an exact
#exponentiation sequence derived from its divisors.

A rapid workaround I arrived at without having to manually format them with regex is TAB first before comment button, and ending up with too much padding

#    GCD-based filtering has been benchmarked to be significantly slower
#    than applying the psi() Reduced-totient aka Carmichael-lambda
#    function [oeis.org/A002322], primarily due to universal exponent
#    of the combined modulus being a known constant, enabling an exact
#    exponentiation sequence derived from its divisors.

Even though the original behavior was most ideal :

#  GCD-based filtering has been benchmarked to be significantly slower
#  than applying the psi() Reduced-totient aka Carmichael-lambda
#  function [oeis.org/A002322], primarily due to universal exponent
#  of the combined modulus being a known constant, enabling an exact
#  exponentiation sequence derived from its divisors.

Another bad workaround I discovered is editing the syntax highlighting definitions for said language, which would cause pre-existing padless comments not to highlight, and I most certainly don't think having to alter syntax definition files to account for differences in user preferences are the proper way to go.

I sincerely hope you'd consider my petition, and simply bring back the feature that has long existed in years of CotEditor releases, until very recently.

The solution you'd like

Not requesting for any new feature. Just revert the change decision and bring back the same configuration option that many has enjoyed.

Alternatives you've considered

No response

CotEditor version

5.0.7 (690)

macOS version

15.11

Additional context

No response

@mogando668 mogando668 added the feature feature requests from users label Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature feature requests from users
Development

No branches or pull requests

1 participant