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

code formatters should use words rather than symbols #1575

Open
chdoc opened this issue Oct 14, 2024 · 1 comment
Open

code formatters should use words rather than symbols #1575

chdoc opened this issue Oct 14, 2024 · 1 comment

Comments

@chdoc
Copy link
Contributor

chdoc commented Oct 14, 2024

I recently noticed that saying "smash one plus" produces "one+" and "hammer one plus" produces "One+". These being code formatters, the expected output should probably be "oneplus" or "OnePlus", i.e. exclusively contain words.

Side note: even phrase formatters only replace punctuation symbols and not other mathematical symbols.

CC: @nriley

@chdoc chdoc changed the title code formatters should not use words rather than symbols code formatters should use words rather than symbols Oct 14, 2024
@AndreasArvidsson
Copy link
Collaborator

AndreasArvidsson commented Oct 19, 2024

I think we should probably add a capture <user.text_code> or <user.text_code_identifier> that is just <user.text> with additional punctuation . and _. We can then use this capture for code formatters and also other commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants