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 surrounding pair modifier (#3) #168

Merged
merged 5 commits into from
Aug 9, 2021

Conversation

maciejklimek
Copy link
Contributor

@maciejklimek maciejklimek commented Jul 31, 2021

This PR implements the matching modifier.

@maciejklimek maciejklimek requested a review from pokey as a code owner July 31, 2021 12:08
@maciejklimek maciejklimek force-pushed the inside_scope branch 3 times, most recently from d23f507 to bc83546 Compare August 6, 2021 15:56
- anchor: {line: 0, character: 17}
active: {line: 0, character: 20}
finalState:
documentContents: "{const [] = [foo, bar]}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only one I'm not in love with; it really only looks at start of selection, so if end of selection is outside of pair it will still count as containing. Would be more work to get this case working so I'm not sure it's worth the trouble

@pokey pokey merged commit 87ebee8 into cursorless-dev:master Aug 9, 2021
@maciejklimek maciejklimek deleted the inside_scope branch August 10, 2021 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants