Skip to content

Conversation

AndreasArvidsson
Copy link
Member

@AndreasArvidsson AndreasArvidsson commented Nov 11, 2022

Checklist

  • Add tests for Selection
  • Add tests for TextLine
  • I have added tests
  • I have updated the docs and cheatsheet
  • I have not broken the cheatsheet

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.

Seems like a solid direction

@pokey
Copy link
Member

pokey commented Nov 16, 2022

Ok I'm going to add a few more tests and then I think it's good to go! Should we drive this one for a day just in case? It does touch about half of our files 🤔

@AndreasArvidsson
Copy link
Member Author

We can if you like but with two and a half thousand tests I'm feeling pretty comfortable

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.

Ok I made a few tweaks; have a look, and if it seems good to you let's merge!

@AndreasArvidsson AndreasArvidsson merged commit 94dadfc into main Nov 16, 2022
@AndreasArvidsson AndreasArvidsson deleted the types branch November 16, 2022 16:52
@AndreasArvidsson
Copy link
Member Author

Looks good.

AndreasArvidsson added a commit that referenced this pull request Dec 15, 2022
If you have a selection spanning more than one line, and your selection
is not reversed, and you scroll offscreen, Cursorless won't prioritise
hats on lines closer to your cursor

Unfortunately this one is hard to test until we have better mocking
capabilities

Noticed this while reviewing #1128

## 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

Co-authored-by: Andreas Arvidsson <andreas.arvidsson87@gmail.com>
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