Skip to content

Add surrounding pair modifier (#3)#168

Merged
pokey merged 5 commits intocursorless-dev:masterfrom
maciejklimek:inside_scope
Aug 9, 2021
Merged

Add surrounding pair modifier (#3)#168
pokey merged 5 commits intocursorless-dev:masterfrom
maciejklimek:inside_scope

Conversation

@maciejklimek
Copy link
Copy Markdown
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
Copy Markdown
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