-
-
Notifications
You must be signed in to change notification settings - Fork 84
Support "instance" pseudo-scope #1497
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
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced May 24, 2023
7aea2f0
to
3110e99
Compare
63b15ec
to
c821f7e
Compare
b011135
to
a4518d0
Compare
c821f7e
to
7df90ed
Compare
6747dfc
to
fd88514
Compare
599bfd3
to
84e631c
Compare
2ae3d8f
to
ff29304
Compare
pokey
commented
May 25, 2023
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.
I wonder if setSelection
actions should sort the selections. I'm sure it would be unexpected to realise these cursors are in this haphazard order, esp since VSCode gives no visual indication of cursor order. Out of scope for this PR obv, but just a thought
1c70efa
to
6cfd216
Compare
6cfd216
to
e77e7b4
Compare
AndreasArvidsson
approved these changes
May 26, 2023
e77e7b4
to
837db66
Compare
660351a
to
fabd6e2
Compare
pokey
added a commit
that referenced
this pull request
May 26, 2023
- Generalize the way we handle scope hoisting in preparation for #1497 - Depends on #1494 ## 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
837db66
to
17f56db
Compare
fabd6e2
to
09cd5c7
Compare
pokey
added a commit
that referenced
this pull request
May 26, 2023
- Primarily useful for #1497 - Depends on #1495 ## 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
17f56db
to
e046128
Compare
cursorless-bot
pushed a commit
that referenced
this pull request
May 26, 2023
- Implements the "instance" pseudo-scope. It functions grammatical kind of like a scope, but hoists over ranges and uses its input in its own way. - Fixes #29 - Depends on #1496 - See #1490 for some discussion of how we got to this implementation ## Checklist - [x] Handle word scopes - [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) - [x] Merge with #1496 ? - [x] check performance on gigantic file - [x] Come up with story around repeater noises. Maybe interact with some new knausj quick actions interface, where "instance" establishes that the "forward" quick action will perform action on additional target - [x] Document how to add one more selection somewhere: "take that and next instance that" - [x] Capture writing from #1490 - [x] "first three instances" - [x] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [x] Handle narrowing range by selection - [x] I have not broken the cheatsheet
thetomcraig-aya
pushed a commit
to thetomcraig/cursorless
that referenced
this pull request
Mar 27, 2024
- Implements the "instance" pseudo-scope. It functions grammatical kind of like a scope, but hoists over ranges and uses its input in its own way. - Fixes cursorless-dev#29 - Depends on cursorless-dev#1496 - See cursorless-dev#1490 for some discussion of how we got to this implementation ## Checklist - [x] Handle word scopes - [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) - [x] Merge with cursorless-dev#1496 ? - [x] check performance on gigantic file - [x] Come up with story around repeater noises. Maybe interact with some new knausj quick actions interface, where "instance" establishes that the "forward" quick action will perform action on additional target - [x] Document how to add one more selection somewhere: "take that and next instance that" - [x] Capture writing from cursorless-dev#1490 - [x] "first three instances" - [x] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [x] Handle narrowing range by selection - [x] I have not broken the cheatsheet
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
isToken
property toTarget
#1496"instance"
scope type #1490 for some discussion of how we got to this implementationChecklist
isToken
property toTarget
#1496 ?"instance"
scope type #1490