Skip to content
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

Add ability to match in next and previous char pairs (2) #11695

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

thomasschafer
Copy link
Contributor

@thomasschafer thomasschafer commented Sep 14, 2024

Adds the ability to match inside/around the next or previous matching character pair: for instance, with the cursor as below:

let x = "bar";

typing ]" would select the contents of the string (i.e. bar).

Screen.Recording.2024-09-15.at.10.20.34.mov

Supersedes #11260 based on discussion there.

Partially resolves:

@thomasschafer
Copy link
Contributor Author

Note: the first commit is essentially just the changes linked in the comment here. I left the two TODO comments in as I couldn't see a nice way to tidy things up without adding unnecessary complexity, but happy to hear any pointers.

@the-mikedavis the-mikedavis added A-keymap Area: Keymap and keybindings A-command Area: Commands labels Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-command Area: Commands A-keymap Area: Keymap and keybindings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants