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 rewrap action #365

Merged
merged 5 commits into from
Dec 7, 2021
Merged

Add rewrap action #365

merged 5 commits into from
Dec 7, 2021

Conversation

pokey
Copy link
Member

@pokey pokey commented Dec 7, 2021

Adds support for rewrap action which can be used to change surrounding paired delimiters

Closes #338
Closes #270

See also cursorless-dev/cursorless-talon#120

squareRepackHarp

@pokey pokey added this to the 0.24.0 milestone Dec 7, 2021
@AndreasArvidsson AndreasArvidsson merged commit b6b22f8 into main Dec 7, 2021
@AndreasArvidsson AndreasArvidsson deleted the pokey-rewrap branch December 7, 2021 15:34
@@ -226,11 +226,11 @@ function getTokenSelectionContext(
}

return {
...selectionContext,
Copy link
Member Author

Choose a reason for hiding this comment

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

This way processToken won't clobber things it doesn't know about

@@ -0,0 +1,29 @@
languageId: plaintext
Copy link
Member Author

Choose a reason for hiding this comment

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

Testing that processToken still causes whitespace cleanup for surrounding pair scopes

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.

Support "round rewrap" action
2 participants