Describe the request
When saving, automatically replace any spaces in the selected filename with dashes or underscores.
Describe the current behavior
There are specific restrictions on sketch names:
https://arduino.github.io/arduino-cli/dev/sketch-specification/#sketch-folders-and-files
If the user specifies a non-compliant name in the "Save As..." dialog (e.g., foo bar), Arduino IDE displays a dialog:
Invalid sketch folder name: 'foo bar'
The name must start with a letter, number, or underscore, followed by letters, numbers, dashes, dots and underscores. Maximum length is 63 characters.
Do you want to try saving the sketch with a different name?
The user then tries saving a again with a compliant name.
Arduino IDE version
Operating system
Windows
Operating system version
11
Additional context
Arduino IDE 1.x has the requested behavior.
Additional requests
Keywords
Issue checklist
Describe the request
When saving, automatically replace any spaces in the selected filename with dashes or underscores.
Describe the current behavior
There are specific restrictions on sketch names:
https://arduino.github.io/arduino-cli/dev/sketch-specification/#sketch-folders-and-files
If the user specifies a non-compliant name in the "Save As..." dialog (e.g.,
foo bar), Arduino IDE displays a dialog:The user then tries saving a again with a compliant name.
Arduino IDE version
Operating system
Windows
Operating system version
11
Additional context
Arduino IDE 1.x has the requested behavior.
Additional requests
Keywords
"invalid"
"normalize"
"normalized
"sanitize"
"sanitized"
"specification compliant"
"specification-compliant"
"valid"
Issue checklist