Skip to content

Commit 5e0a244

Browse files
authored
Support "instance" pseudo-scope (#1497)
- 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
1 parent ae77875 commit 5e0a244

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/modifiers/scopes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"funk name": "functionName",
3030
"funk": "namedFunction",
3131
"if state": "ifStatement",
32+
"instance": "instance",
3233
"item": "collectionItem",
3334
"key": "collectionKey",
3435
"lambda": "anonymousFunction",

0 commit comments

Comments
 (0)