-
-
Notifications
You must be signed in to change notification settings - Fork 89
Migrated surrounding pair scope handler #2457
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
Conversation
…ev/cursorless into surroundingPairScopeHandler
packages/cursorless-engine/src/languages/TreeSitterQuery/QueryCapture.ts
Show resolved
Hide resolved
packages/cursorless-engine/src/languages/TreeSitterQuery/isContainedInErrorNode.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wow that disqualify stuff looks like it was a lot of work. Nice job. We should prob have some negative tests, ie that we're not disqualifying delimiters that we do want, but I think we have some tests for those and this PR is growing long in the tooth so I'd be happy to leave those for now.
As discussed, let's drive this for a couple days and then ship it
It was definitely some effort. We have a few tests. If anything comes to mind please record a few. Otherwise I would like to just get this in at the stage. |
I wonder if we should make iteration scope be "line". I think being able to say "first string" / "last string" will be really useful |
Why not? |
Fixes #2316 ## Checklist - [x] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [/] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [x] I have not broken the cheatsheet - [x] Add `@disqualifyDelimiter` for all languages - [x] Add plural form of surrounding pair [scopes.py](https://github.com/cursorless-dev/cursorless/blob/5e9a2e955570cb43d5d07de8c861365e8361cc36/cursorless-talon/src/modifiers/scopes.py#L48) - [x] Run talon tests - [x] add multiline quad tests for plaintext? --------- Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Co-authored-by: Pokey Rule <[email protected]>
As per https://www.cursorless.org/docs/contributing/test-case-recorder/#partially-upgrading-fixtures ``` pnpm transform-recorded-tests --upgrade --minimum-version 6 ``` Now that they're more than a year old, we can upgrade test fixtures so they know about destinations If merge conflicts with #2457 are going to be annoying, we can hold off until then to merge ## Checklist - [-] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [-] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [-] I have not broken the cheatsheet
…#2626) These are now deprecated and now error out after #2457. We missed this reference in the documentation. Fixes #2625 ## Checklist - [/] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [x] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [/] I have not broken the cheatsheet
… (#2626) These are now deprecated and now error out after cursorless-dev/cursorless#2457. We missed this reference in the documentation. Fixes #2625 ## Checklist - [/] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [x] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [/] I have not broken the cheatsheet
…#2626) These are now deprecated and now error out after #2457. We missed this reference in the documentation. Fixes #2625 ## Checklist - [/] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [x] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [/] I have not broken the cheatsheet
Fixes #2316
Checklist
@disqualifyDelimiter
for all languages