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

Added option to always skip over pair in front of cursor #335

merged 3 commits into from Dec 5, 2017


None yet
2 participants

reujab commented Dec 3, 2017

Description of the Change

This pull requests adds a new option (bracket-matcher.alwaysSkipClosingPairs) that, when enabled, will always move the cursor to the right when the cursor is behind a closing pair.

After pressing (, the editor will be (|).
After pressing ), the editor will be ()|.
After moving the cursor left, the editor will be (|) again.
After pressing ) with this option set to false, the editor will be ()|)
But if the option was true, the editor would be ()|

Alternate Designs



This behavior is similar to the auto-pairs and delimitMate Vim plugins. After switching to Atom from Vim with one of those plugins, this behavior will be much more familiar.

Possible Drawbacks

None, this option is disabled by default.

Applicable Issues


@50Wliu 50Wliu merged commit 32817b8 into atom:master Dec 5, 2017

2 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
continuous-integration/travis-ci/pr The Travis CI build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment