Skip to content

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

Merged
merged 105 commits into from
Jul 28, 2024
Merged

Conversation

AndreasArvidsson
Copy link
Member

@AndreasArvidsson AndreasArvidsson commented Jul 1, 2024

Fixes #2316

Checklist

  • I have added tests
  • [/] I have updated the docs and cheatsheet
  • I have not broken the cheatsheet
  • Add @disqualifyDelimiter for all languages
  • Add plural form of surrounding pair scopes.py
  • Run talon tests
  • add multiline quad tests for plaintext?

Copy link
Member

@pokey pokey left a 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

@AndreasArvidsson
Copy link
Member Author

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've been running it for this entire day and except for the bug that was fixed earlier it has been working fine.

@pokey pokey mentioned this pull request Jul 26, 2024
@pokey
Copy link
Member

pokey commented Jul 26, 2024

I wonder if we should make iteration scope be "line". I think being able to say "first string" / "last string" will be really useful

@AndreasArvidsson
Copy link
Member Author

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?

@pokey pokey added this pull request to the merge queue Jul 28, 2024
Merged via the queue into main with commit 0bf9021 Jul 28, 2024
15 checks passed
@pokey pokey deleted the surroundingPairScopeHandler branch July 28, 2024 09:03
cursorless-bot pushed a commit that referenced this pull request Jul 28, 2024
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]>
github-merge-queue bot pushed a commit that referenced this pull request Jul 30, 2024
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
github-merge-queue bot pushed a commit that referenced this pull request Aug 4, 2024
…#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
cursorless-bot pushed a commit to cursorless-dev/cursorless-talon that referenced this pull request Aug 4, 2024
… (#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
cursorless-bot pushed a commit that referenced this pull request Aug 4, 2024
…#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
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.

"Take inside" doesn't work in C++ with #pragma line
2 participants