-
Notifications
You must be signed in to change notification settings - Fork 5
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
[question] Should we highlight email? #7
Comments
Good point! In particular, I'd agree to scope: I believe the last one is what you mean by "the username even", right? I'd scope all of this with the same color:
Similar to how we do option dashes (I'll follow-up with a comment on implementation concerns + roadmap later.) |
Implementation concerns:
Roadmap:
That overhaul is going to affect the set of scopes (& colors) that are open for this new class. So I'd rather do this later. A perfectly valid outcome is this gets scoped the same as a pre-existing class. Prime candidate: filenames. There are not many in help messages, not that we scope at least. So the intersection with commands that have a report-bugs email should be pretty narrow.~~ |
I'm tagging this as "good first issue" with a change in scope. Whoever does this, don't mind about the scope name you use for it. You only need to choose one that will be assigned a color by the default Monokai theme (the one used in tests). After the detection logic for this is sound (and it shouldn't be too hard), we'll worry about assigning it a scope that plays well with the rest of the syntax. |
Btw, scope names have been finalized. Whoever tackles this, please add the following scope names variable, and reference it within the new scope_variables:
...
- &MAILTO_SCOPES
constant.character.escape.mailto.cmd-help
variable.parameter.mailto.cmd-help
meta.function.block.start.handlebars.mailto.cmd-help |
In many programs'
--help
, the last line isReport bugs to <email>.
e.g.:This is the requirements of
help2man
, i.e., if a program's--help
have^Report bugs
,help2man
can use its--help
to generate a man automatically.So should we highlight the email or the username even URL? I think when user want to find the email to report a bug, the highlighted email and username can be found more easily.
Thanks.
The text was updated successfully, but these errors were encountered: