-
Notifications
You must be signed in to change notification settings - Fork 269
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
Automatically replace disallowed characters with allowed characters in create branch form field #471
Comments
Hi @griest024, Thanks for raising this feature request, it would definitely be nice to have in Git Graph! It seems like the space substitution you mentioned as an example would be the most useful. There are numerous other disallowed characters that I don’t think there is a natural substitution for (e.g. |
I think at the very least the form field should not allow those characters to be inserted into the branch name string. You could add a config option for each one of those characters but that seems cumbersome and most likely YAGNI. I say for now just add an option to configure the space replacement character. I would be willing to submit a PR; let me dig into the codebase a little and I'll get back to you. |
Hi @griest024, I agree that for now let's focus on the space replacement in all reference dialog inputs. This is actually really quick and easy for me to do - I'm doing a beta release in around 9 hours, so I'm happy to implement it so it can be included in it. |
@mhutchie okay go for it, don't let me hold you up Edit: feel free to ping me for a beta test |
Automatic space substitution on reference inputs on dialogs will be available in v1.30.0. The new extension setting If you'd like to use / test it before the next release, you can download v1.30.0-beta.0, and install it following the instructions provided here. |
Describe the feature that you'd like
).
When typing the name of the branch in the create branch dialog form field, I would like an allowed character (e.g. hyphen:
-
) to be automatically substituted in when I type a disallowed character (e.g. space:Additional context (optional)
The inserted character should probably be configurable as I imagine some people would prefer
_
over-
.The text was updated successfully, but these errors were encountered: