Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Bracket Matcher, move through existing parentheses #2774

Comments

@IwanLuijksQuestMedia
Copy link

When there is an existing set of opening and closing parentheses like so:
tell_someone_that(empty($var))

and the cursor is just after $var, Atom knows the following closing parenthesis matches the third opening parenthesis (the one of the 'empty' call), it also knows the second closing parenthesis matches the one of the 'tell_someone_that'-call.

One of Netbeans' most wonderful features to date, in my opinion, is that when my cursor is right after $var and I type a closing parenthesis, it just moves the cursor one position to the right, when I type another closing parenthesis the cursor moves one position to the right again.. This is continued like so, as long as the closing parenthesis match an existing opening parenthesis, otherwise a closing parenthesis is inserted at the position of the cursor.

In Atom though, a new closing parenthesis is always inserted at the cursor's position.

It would be a great feature if the cursor would move just one position per closing parenthesis entered as long as it matches an opening one.

schermafbeelding 2014-06-30 om 17 10 07

Mac OS X 10.8.5
Atom Version 0.106.0 (0.106.0)

@lee-dohm
Copy link
Contributor

This should probably be filed on the Bracket Matcher package?

@IwanLuijksQuestMedia
Copy link
Author

You are absolutely right, my bad, didn't notice the Bracket Matcher package's repo.

Created a new issue there: atom/bracket-matcher#49.

@izuzak
Copy link
Contributor

izuzak commented Jul 2, 2014

Closing this since there's an issue now in the bracket-matcher repository.

@izuzak izuzak closed this as completed Jul 2, 2014
@lock
Copy link

lock bot commented Jan 26, 2019

This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

@lock lock bot locked as resolved and limited conversation to collaborators Jan 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.