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

Only auto-capitalize if first charater is lower-case #1298

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wavexx
Copy link
Contributor

@wavexx wavexx commented Jan 15, 2023

Auto-capitalize commands only if the first character is both a command character and a lower-case one.

This follows the behavior as described by #216 (comment).

@FrHePo FIY

Auto-capitalize commands only if the first character is both a command
character and a lower-case one.
@rockstorm101
Copy link
Collaborator

Hi, I'm happy with the changes and they do work as intended. However, this change might break some people's configurations which relied on pronsole being clever there. Might not break anything since probably most firmwares are already prepared to accept lower-case commands here and there. But I can't really speak for all firmwares. I would leave this kind of change for a future 2.1.x release. I'd even suggest making auto-capitalization an option, being turned off by default. Which falls into the "feature request" category more than a "fix", hence the wait for the next minor version release.

I'm open for comments/suggestions here though.

@wavexx
Copy link
Contributor Author

wavexx commented Jan 23, 2023

I know I ran into the autocapitalization issue a few times myself, and every time I rediscovered the @ prefix (I mostly use "printcore", only rarely "pronsole").

It's a double edge sword, I wonder how often people type in lower case and expect the same to work in gcode later.

But without digressing, how do you propose to set such an option? Using a variable as set via "set [var] [v]"? When I run "set" via pronsole I get nothing. Are there any options yet?

@FrHePo
Copy link

FrHePo commented Jan 23, 2023

Hi, I'm happy with the changes and they do work as intended. However, this change might break some people's configurations which relied on pronsole being clever there. Might not break anything since probably most firmwares are already prepared to accept lower-case commands here and there. But I can't really speak for all firmwares. I would leave this kind of change for a future 2.1.x release. I'd even suggest making auto-capitalization an option, being turned off by default. Which falls into the "feature request" category more than a "fix", hence the wait for the next minor version release.

I'm open for comments/suggestions here though.

I agree. It's not that urgent and allowing the user to switch on/off would be fine.

@rockstorm101
Copy link
Collaborator

How do you propose to set such an option? Using a variable as set via "set [var] [v]"? When I run "set" via pronsole I get nothing. Are there any options yet?

Haven't thought about it much yet, but yes, a configuration variable sounds like a good idea.

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

Successfully merging this pull request may close these issues.

3 participants