Skip to content

Commit 0a70357

Browse files
AndreasArvidssonpre-commit-ci-lite[bot]pokey
authored
Migrate python collection item scope (#2450)
## 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 --------- Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Co-authored-by: Pokey Rule <[email protected]>
1 parent a315e6f commit 0a70357

19 files changed

+261
-133
lines changed

data/fixtures/recorded/languages/python/chuckItem.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

data/fixtures/recorded/languages/python/clearEveryItem.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

data/fixtures/recorded/languages/python/clearEveryItem2.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import foo, bar
2+
---
3+
4+
[Range] = 0:7-0:15
5+
>--------<
6+
0| import foo, bar
7+
8+
[Domain] = 0:0-0:15
9+
>---------------<
10+
0| import foo, bar
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from foo import bar, baz
2+
---
3+
4+
[Range] = 0:16-0:24
5+
>--------<
6+
0| from foo import bar, baz
7+
8+
[Domain] = 0:0-0:24
9+
>------------------------<
10+
0| from foo import bar, baz
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
def foo():
2+
global bar, baz
3+
---
4+
5+
[Range] = 1:11-1:19
6+
>--------<
7+
1| global bar, baz
8+
9+
[Domain] = 1:4-1:19
10+
>---------------<
11+
1| global bar, baz
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import foo
2+
---
3+
4+
[Content] =
5+
[Domain] = 0:7-0:10
6+
>---<
7+
0| import foo
8+
9+
[Removal] = 0:6-0:10
10+
>----<
11+
0| import foo
12+
13+
[Leading delimiter] = 0:6-0:7
14+
>-<
15+
0| import foo
16+
17+
[Insertion delimiter] = ", "
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import foo, bar
2+
---
3+
4+
[#1 Content] =
5+
[#1 Domain] = 0:7-0:10
6+
>---<
7+
0| import foo, bar
8+
9+
[#1 Removal] = 0:7-0:12
10+
>-----<
11+
0| import foo, bar
12+
13+
[#1 Trailing delimiter] = 0:10-0:12
14+
>--<
15+
0| import foo, bar
16+
17+
[#1 Insertion delimiter] = ", "
18+
19+
20+
[#2 Content] =
21+
[#2 Domain] = 0:12-0:15
22+
>---<
23+
0| import foo, bar
24+
25+
[#2 Removal] = 0:10-0:15
26+
>-----<
27+
0| import foo, bar
28+
29+
[#2 Leading delimiter] = 0:10-0:12
30+
>--<
31+
0| import foo, bar
32+
33+
[#2 Insertion delimiter] = ", "
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from foo import bar
2+
---
3+
4+
[Content] =
5+
[Domain] = 0:16-0:19
6+
>---<
7+
0| from foo import bar
8+
9+
[Removal] = 0:15-0:19
10+
>----<
11+
0| from foo import bar
12+
13+
[Leading delimiter] = 0:15-0:16
14+
>-<
15+
0| from foo import bar
16+
17+
[Insertion delimiter] = ", "
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
def foo():
2+
global bar
3+
---
4+
5+
[Content] =
6+
[Domain] = 1:11-1:14
7+
>---<
8+
1| global bar
9+
10+
[Removal] = 1:10-1:14
11+
>----<
12+
1| global bar
13+
14+
[Leading delimiter] = 1:10-1:11
15+
>-<
16+
1| global bar
17+
18+
[Insertion delimiter] = ", "

0 commit comments

Comments
 (0)