-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "name" / "value" support for Python
with
(#2162)
## 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) - [-] I have not broken the cheatsheet
- Loading branch information
Showing
15 changed files
with
629 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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 file contains 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 file contains 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
19 changes: 19 additions & 0 deletions
19
...ages/cursorless-vscode-e2e/src/suite/fixtures/scopes/python/name.resource.iteration.scope
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
with aaa, bbb as ccc: | ||
pass | ||
--- | ||
|
||
[#1 Range] = 0:5-0:20 | ||
0| with aaa, bbb as ccc: | ||
>---------------< | ||
|
||
[#1 Domain] = 0:0-1:8 | ||
0| with aaa, bbb as ccc: | ||
>--------------------- | ||
1| pass | ||
--------< | ||
|
||
|
||
[#2 Range] = | ||
[#2 Domain] = 1:4-1:8 | ||
1| pass | ||
>----< |
23 changes: 23 additions & 0 deletions
23
packages/cursorless-vscode-e2e/src/suite/fixtures/scopes/python/name.resource.scope
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
with aaa as bbb: | ||
pass | ||
--- | ||
|
||
[Content] = 0:12-0:15 | ||
0| with aaa as bbb: | ||
>---< | ||
|
||
[Removal] = 0:8-0:15 | ||
0| with aaa as bbb: | ||
>-------< | ||
|
||
[Leading delimiter] = 0:8-0:12 | ||
0| with aaa as bbb: | ||
>----< | ||
|
||
[Domain] = 0:0-1:8 | ||
0| with aaa as bbb: | ||
>---------------- | ||
1| pass | ||
--------< | ||
|
||
[Insertion delimiter] = " " |
72 changes: 72 additions & 0 deletions
72
packages/cursorless-vscode-e2e/src/suite/fixtures/scopes/python/name.resource2.scope
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
with aaa, bbb as ccc: | ||
pass | ||
--- | ||
|
||
[#1.1 Content] = 0:5-0:8 | ||
0| with aaa, bbb as ccc: | ||
>---< | ||
|
||
[#1.1 Removal] = 0:5-0:10 | ||
0| with aaa, bbb as ccc: | ||
>-----< | ||
|
||
[#1.1 Trailing delimiter] = 0:8-0:10 | ||
0| with aaa, bbb as ccc: | ||
>--< | ||
|
||
[#1.1 Insertion delimiter] = " " | ||
|
||
[#1.2 Content] = 0:17-0:20 | ||
0| with aaa, bbb as ccc: | ||
>---< | ||
|
||
[#1.2 Removal] = 0:13-0:20 | ||
0| with aaa, bbb as ccc: | ||
>-------< | ||
|
||
[#1.2 Leading delimiter] = 0:13-0:17 | ||
0| with aaa, bbb as ccc: | ||
>----< | ||
|
||
[#1.2 Insertion delimiter] = " " | ||
|
||
[#1 Domain] = 0:0-1:8 | ||
0| with aaa, bbb as ccc: | ||
>--------------------- | ||
1| pass | ||
--------< | ||
|
||
|
||
[#2 Content] = | ||
[#2 Domain] = 0:5-0:8 | ||
0| with aaa, bbb as ccc: | ||
>---< | ||
|
||
[#2 Removal] = 0:5-0:10 | ||
0| with aaa, bbb as ccc: | ||
>-----< | ||
|
||
[#2 Trailing delimiter] = 0:8-0:10 | ||
0| with aaa, bbb as ccc: | ||
>--< | ||
|
||
[#2 Insertion delimiter] = " " | ||
|
||
|
||
[#3 Content] = 0:17-0:20 | ||
0| with aaa, bbb as ccc: | ||
>---< | ||
|
||
[#3 Removal] = 0:13-0:20 | ||
0| with aaa, bbb as ccc: | ||
>-------< | ||
|
||
[#3 Leading delimiter] = 0:13-0:17 | ||
0| with aaa, bbb as ccc: | ||
>----< | ||
|
||
[#3 Domain] = 0:10-0:20 | ||
0| with aaa, bbb as ccc: | ||
>----------< | ||
|
||
[#3 Insertion delimiter] = " " |
75 changes: 75 additions & 0 deletions
75
packages/cursorless-vscode-e2e/src/suite/fixtures/scopes/python/name.resource3.scope
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
with aaa as bbb, ccc as ddd: | ||
pass | ||
--- | ||
|
||
[#1.1 Content] = 0:12-0:15 | ||
0| with aaa as bbb, ccc as ddd: | ||
>---< | ||
|
||
[#1.1 Removal] = 0:8-0:15 | ||
0| with aaa as bbb, ccc as ddd: | ||
>-------< | ||
|
||
[#1.1 Leading delimiter] = 0:8-0:12 | ||
0| with aaa as bbb, ccc as ddd: | ||
>----< | ||
|
||
[#1.1 Insertion delimiter] = " " | ||
|
||
[#1.2 Content] = 0:24-0:27 | ||
0| with aaa as bbb, ccc as ddd: | ||
>---< | ||
|
||
[#1.2 Removal] = 0:20-0:27 | ||
0| with aaa as bbb, ccc as ddd: | ||
>-------< | ||
|
||
[#1.2 Leading delimiter] = 0:20-0:24 | ||
0| with aaa as bbb, ccc as ddd: | ||
>----< | ||
|
||
[#1.2 Insertion delimiter] = " " | ||
|
||
[#1 Domain] = 0:0-1:8 | ||
0| with aaa as bbb, ccc as ddd: | ||
>---------------------------- | ||
1| pass | ||
--------< | ||
|
||
|
||
[#2 Content] = 0:12-0:15 | ||
0| with aaa as bbb, ccc as ddd: | ||
>---< | ||
|
||
[#2 Removal] = 0:8-0:15 | ||
0| with aaa as bbb, ccc as ddd: | ||
>-------< | ||
|
||
[#2 Leading delimiter] = 0:8-0:12 | ||
0| with aaa as bbb, ccc as ddd: | ||
>----< | ||
|
||
[#2 Domain] = 0:5-0:15 | ||
0| with aaa as bbb, ccc as ddd: | ||
>----------< | ||
|
||
[#2 Insertion delimiter] = " " | ||
|
||
|
||
[#3 Content] = 0:24-0:27 | ||
0| with aaa as bbb, ccc as ddd: | ||
>---< | ||
|
||
[#3 Removal] = 0:20-0:27 | ||
0| with aaa as bbb, ccc as ddd: | ||
>-------< | ||
|
||
[#3 Leading delimiter] = 0:20-0:24 | ||
0| with aaa as bbb, ccc as ddd: | ||
>----< | ||
|
||
[#3 Domain] = 0:17-0:27 | ||
0| with aaa as bbb, ccc as ddd: | ||
>----------< | ||
|
||
[#3 Insertion delimiter] = " " |
19 changes: 19 additions & 0 deletions
19
...ges/cursorless-vscode-e2e/src/suite/fixtures/scopes/python/value.resource.iteration.scope
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
with aaa, bbb as ccc: | ||
pass | ||
--- | ||
|
||
[#1 Range] = 0:5-0:20 | ||
0| with aaa, bbb as ccc: | ||
>---------------< | ||
|
||
[#1 Domain] = 0:0-1:8 | ||
0| with aaa, bbb as ccc: | ||
>--------------------- | ||
1| pass | ||
--------< | ||
|
||
|
||
[#2 Range] = | ||
[#2 Domain] = 1:4-1:8 | ||
1| pass | ||
>----< |
36 changes: 36 additions & 0 deletions
36
...es/cursorless-vscode-e2e/src/suite/fixtures/scopes/python/value.resource.iteration2.scope
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
with aaa: | ||
pass | ||
|
||
bbb = ccc | ||
ddd = eee | ||
--- | ||
|
||
[#1 Range] = 0:5-0:8 | ||
0| with aaa: | ||
>---< | ||
|
||
[#1 Domain] = 0:0-1:8 | ||
0| with aaa: | ||
>--------- | ||
1| pass | ||
--------< | ||
|
||
|
||
[#2 Range] = | ||
[#2 Domain] = 0:0-4:9 | ||
0| with aaa: | ||
>--------- | ||
1| pass | ||
-------- | ||
2| | ||
|
||
3| bbb = ccc | ||
--------- | ||
4| ddd = eee | ||
---------< | ||
|
||
|
||
[#3 Range] = | ||
[#3 Domain] = 1:4-1:8 | ||
1| pass | ||
>----< |
23 changes: 23 additions & 0 deletions
23
packages/cursorless-vscode-e2e/src/suite/fixtures/scopes/python/value.resource.scope
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
with aaa: | ||
pass | ||
--- | ||
|
||
[Content] = 0:5-0:8 | ||
0| with aaa: | ||
>---< | ||
|
||
[Removal] = 0:4-0:8 | ||
0| with aaa: | ||
>----< | ||
|
||
[Leading delimiter] = 0:4-0:5 | ||
0| with aaa: | ||
>-< | ||
|
||
[Domain] = 0:0-1:8 | ||
0| with aaa: | ||
>--------- | ||
1| pass | ||
--------< | ||
|
||
[Insertion delimiter] = " " |
Oops, something went wrong.