-
-
Notifications
You must be signed in to change notification settings - Fork 84
Allow using "this" to refer to current token with empty selection #1094
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
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.
Looks good with some minor comments. Also worth adding tests for:
- "bring this to bat"
- "bring bat to this"
- "chuck this"
...test/suite/fixtures/recorded/hatTokenMap/bringHarpAndPointToThisAndStartOfWhaleTakeWhale.yml
Outdated
Show resolved
Hide resolved
...test/suite/fixtures/recorded/hatTokenMap/bringPointAndHarpToThisAndStartOfWhaleTakeWhale.yml
Outdated
Show resolved
Hide resolved
@pokey Ready! |
Thinking about it more, I don't think we should have special cases for ranges. It is confusing if "bring this to bat" behaves differently from "take this past bat". Happy to discuss at meet-up if you prefer the special case for ranges |
I'm not sure either. Lets every discussion. |
Update based on discussion:
|
I guess maybe it's ok? It's causing 4 CI failures... |
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.
Ok I think this one is good to go; I'll give you a chance to have a quick look if you get a minute @AndreasArvidsson
See #1094 (comment) |
@pokey Looks good |
I found myself wanting this one again today; I say let's ship it without feature flag. If we decide it's a bad idea down the road, we can always:
|
) - Fixes #1043 - Fixes #1141 - Depends on #1187 ## Checklist - [x] 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) Co-authored-by: Pokey Rule <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
) - Fixes #1043 - Fixes #1141 - Depends on #1187 ## Checklist - [x] 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) Co-authored-by: Pokey Rule <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
…rsorless-dev#1094) - Fixes cursorless-dev#1043 - Fixes cursorless-dev#1141 - Depends on cursorless-dev#1187 ## Checklist - [x] 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) Co-authored-by: Pokey Rule <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
isImplicit
boolean into its own target type #1141Checklist