-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
make auto pairing optional for quotes and parens #475
Conversation
@cmccrorie this needs review and testing |
@marmoure I have taken a look at this and the option to enable and disable this with in |
@marmoure In my testing, toggling the new "Edit > autoPair" command does toggle the auto-pairing of single quotes, double quotes, and parentheses:
Reminder to self: add a note about this new option to https://github.com/eXist-db/eXide/blob/develop/docs/docs.md (perhaps under "code completion"?) before releasing. |
thanks @joewiz sounds good |
@marmoure Interesting! In my original note, I mentioned that square brackets were being auto-paired, but perhaps I was mistaken or the behavior changed in the meantime. (I see square brackets are auto-paired in the demo at https://ace.c9.io/.) Yes, if it's not too much trouble, I think that in the XQuery context it's natural to have auto-pairing on these two characters - But if it looks complex, the PR is acceptable without extending auto-pairing to these characters. Thanks! |
(I see other ace users have requested more configurable behavior regarding auto-pairing... ajaxorg/ace#4199.) |
@joewiz we can have that as a feature if needed |
@joewiz the autoPair is now in |
I can confirm that the auto-pair preference works as expected. It changes operations immediately and persists across reloads of eXide. Could you fix the preference label? It should be "Auto-pair characters" rather than "auto pair". |
@marmoure GitHub is reporting a conflict in the PR. |
@joewiz can you give this one, a final spin and see the output |
@marmoure I see that when I enter |
@joewiz i ll try to copy the behavior from the double quotes, it's a nice suggestion |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works perfectly!
@marmoure Thank you! |
this PR introduce a new feature that allows to toggle auto pairing for quotas and parens
Fixes #117
This open source contribution to the eXide project was commissioned by the Office of the Historian, U.S. Department of State, https://history.state.gov/.