Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
38fbf06
Added interior range to Tree sitter scope type targets
AndreasArvidsson Oct 31, 2025
6e152e9
Update interior scope handler
AndreasArvidsson Oct 31, 2025
fd1577d
Update comment
AndreasArvidsson Oct 31, 2025
3c1df79
Merge branch 'main' into inside
AndreasArvidsson Nov 6, 2025
b3e6f75
Update Java
AndreasArvidsson Nov 6, 2025
4bf62d4
python
AndreasArvidsson Nov 6, 2025
0cc45bc
c
AndreasArvidsson Nov 6, 2025
b0a1062
cpp
AndreasArvidsson Nov 6, 2025
cda80ed
csharp
AndreasArvidsson Nov 6, 2025
895aa39
go
AndreasArvidsson Nov 6, 2025
717179d
html
AndreasArvidsson Nov 6, 2025
a2b1e27
xml
AndreasArvidsson Nov 6, 2025
1f00486
typescript
AndreasArvidsson Nov 6, 2025
a1933d4
scss
AndreasArvidsson Nov 6, 2025
0521934
latex
AndreasArvidsson Nov 6, 2025
7fd57a1
talon
AndreasArvidsson Nov 7, 2025
7a151f9
lua
AndreasArvidsson Nov 7, 2025
f93936c
markdown
AndreasArvidsson Nov 7, 2025
a8c533e
r
AndreasArvidsson Nov 7, 2025
09ea3f4
Update comments
AndreasArvidsson Nov 7, 2025
fceedc5
textual
AndreasArvidsson Nov 7, 2025
976bb42
Use every scope for interiors in typed targets
AndreasArvidsson Nov 10, 2025
d33b6c1
Changelog
AndreasArvidsson Nov 10, 2025
2c20e19
Pass lint
AndreasArvidsson Nov 10, 2025
84626c5
Clean up
AndreasArvidsson Nov 10, 2025
afe0498
Restore head tail
AndreasArvidsson Nov 10, 2025
ea7925b
Added comment
AndreasArvidsson Nov 10, 2025
e2e0968
Remove change log
AndreasArvidsson Nov 10, 2025
af04dbc
Add test
AndreasArvidsson Nov 10, 2025
4d180d5
Update comment
AndreasArvidsson Nov 10, 2025
3c6ebd5
Update tests
AndreasArvidsson Nov 10, 2025
dd93599
latex interior
AndreasArvidsson Nov 10, 2025
079b26d
update tests
AndreasArvidsson Nov 10, 2025
a8989d0
Mark interior as sudo scope
AndreasArvidsson Nov 10, 2025
7530b9d
more latex
AndreasArvidsson Nov 10, 2025
31d4374
Rename default spoke in form for interior scope
AndreasArvidsson Nov 10, 2025
9143031
Update comment
AndreasArvidsson Nov 11, 2025
ed6ca7e
Update lua test
AndreasArvidsson Nov 13, 2025
d1f4aa8
Clean up comments
AndreasArvidsson Nov 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions data/fixtures/recorded/languages/lua/changeInsideList.yml

This file was deleted.

30 changes: 0 additions & 30 deletions data/fixtures/recorded/modifiers/changeInsideValue.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ initialState:
def testing():
pass
selections:
- anchor: {line: 0, character: 0}
active: {line: 0, character: 0}
- anchor: {line: 1, character: 4}
active: {line: 1, character: 4}
marks: {}
finalState:
documentContents: |-
Expand Down
44 changes: 44 additions & 0 deletions data/fixtures/recorded/modifiers/interior/changeInsideState.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
languageId: javascript
command:
version: 7
spokenForm: change inside state
action:
name: clearAndSetSelection
target:
type: primitive
modifiers:
- {type: interiorOnly}
- type: containingScope
scopeType: {type: statement}
usePrePhraseSnapshot: false
initialState:
documentContents: |-
if (true) {
a;
}
else if (false) {
b;
} else {
c;
}
selections:
- anchor: {line: 0, character: 0}
active: {line: 0, character: 0}
marks: {}
finalState:
documentContents: |-
if (true) {

}
else if (false) {

} else {

}
selections:
- anchor: {line: 1, character: 4}
active: {line: 1, character: 4}
- anchor: {line: 4, character: 4}
active: {line: 4, character: 4}
- anchor: {line: 6, character: 4}
active: {line: 6, character: 4}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
languageId: plaintext
command:
version: 6
spokenForm: change every paint inside paren
spokenForm: change every paint inside
action:
name: clearAndSetSelection
target:
Expand All @@ -10,17 +10,12 @@ command:
- type: everyScope
scopeType: {type: nonWhitespaceSequence}
- {type: interiorOnly}
mark: {type: decoratedSymbol, symbolColor: default, character: (}
usePrePhraseSnapshot: true
initialState:
documentContents: foo(aa|aa-().c_d bb|bb-().'') { return 1; }
selections:
- anchor: {line: 0, character: 0}
active: {line: 0, character: 0}
marks:
default.(:
start: {line: 0, character: 3}
end: {line: 0, character: 4}
- anchor: {line: 0, character: 4}
active: {line: 0, character: 4}
finalState:
documentContents: " { return 1; }"
selections:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
languageId: plaintext
command:
version: 6
spokenForm: change every short paint inside paren
spokenForm: change every short paint inside
action:
name: clearAndSetSelection
target:
Expand All @@ -10,17 +10,12 @@ command:
- type: everyScope
scopeType: {type: boundedNonWhitespaceSequence}
- {type: interiorOnly}
mark: {type: decoratedSymbol, symbolColor: default, character: (}
usePrePhraseSnapshot: true
initialState:
documentContents: foo(aa|aa-().c_d bb|bb-().'')
selections:
- anchor: {line: 0, character: 1}
active: {line: 0, character: 1}
marks:
default.(:
start: {line: 0, character: 3}
end: {line: 0, character: 4}
- anchor: {line: 0, character: 4}
active: {line: 0, character: 4}
finalState:
documentContents: foo( )
selections:
Expand Down
4 changes: 2 additions & 2 deletions data/fixtures/recorded/selectionTypes/clearCore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ command:
initialState:
documentContents: ( )
selections:
- anchor: {line: 0, character: 0}
active: {line: 0, character: 0}
- anchor: {line: 0, character: 1}
active: {line: 0, character: 1}
marks: {}
finalState:
documentContents: ()
Expand Down
4 changes: 2 additions & 2 deletions data/fixtures/recorded/selectionTypes/clearCore2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ command:
initialState:
documentContents: ()
selections:
- anchor: {line: 0, character: 0}
active: {line: 0, character: 0}
- anchor: {line: 0, character: 1}
active: {line: 0, character: 1}
marks: {}
finalState:
documentContents: ()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ initialState:

"'jlkjl' 'fsd'"
selections:
- anchor: {line: 1, character: 8}
active: {line: 1, character: 8}
- anchor: {line: 1, character: 7}
active: {line: 1, character: 7}
marks: {}
finalState:
documentContents: |-
Expand Down
23 changes: 4 additions & 19 deletions data/fixtures/scopes/c/interior/interior.class.scope
Original file line number Diff line number Diff line change
@@ -1,25 +1,10 @@
struct Foo { };
---

[#1 Content] =
[#1 Removal] = 0:12-0:13
[Content] =
[Removal] =
[Domain] = 0:12-0:13
>-<
0| struct Foo { };

[#1 Domain] = 0:0-0:15
>---------------<
0| struct Foo { };

[#1 Insertion delimiter] = " "


[#2 Content] =
[#2 Removal] = 0:12-0:13
>-<
0| struct Foo { };

[#2 Domain] = 0:11-0:14
>---<
0| struct Foo { };

[#2 Insertion delimiter] = " "
[Insertion delimiter] = " "
23 changes: 4 additions & 19 deletions data/fixtures/scopes/c/interior/interior.class2.scope
Original file line number Diff line number Diff line change
@@ -1,25 +1,10 @@
union Foo { };
---

[#1 Content] =
[#1 Removal] = 0:11-0:12
[Content] =
[Removal] =
[Domain] = 0:11-0:12
>-<
0| union Foo { };

[#1 Domain] = 0:0-0:14
>--------------<
0| union Foo { };

[#1 Insertion delimiter] = " "


[#2 Content] =
[#2 Removal] = 0:11-0:12
>-<
0| union Foo { };

[#2 Domain] = 0:10-0:13
>---<
0| union Foo { };

[#2 Insertion delimiter] = " "
[Insertion delimiter] = " "
23 changes: 4 additions & 19 deletions data/fixtures/scopes/c/interior/interior.class3.scope
Original file line number Diff line number Diff line change
@@ -1,25 +1,10 @@
typedef struct { } Foo;
---

[#1 Content] =
[#1 Removal] = 0:16-0:17
[Content] =
[Removal] =
[Domain] = 0:16-0:17
>-<
0| typedef struct { } Foo;

[#1 Domain] = 0:0-0:23
>-----------------------<
0| typedef struct { } Foo;

[#1 Insertion delimiter] = " "


[#2 Content] =
[#2 Removal] = 0:16-0:17
>-<
0| typedef struct { } Foo;

[#2 Domain] = 0:15-0:18
>---<
0| typedef struct { } Foo;

[#2 Insertion delimiter] = " "
[Insertion delimiter] = " "
23 changes: 4 additions & 19 deletions data/fixtures/scopes/c/interior/interior.class4.scope
Original file line number Diff line number Diff line change
@@ -1,25 +1,10 @@
typedef union { } Foo;
---

[#1 Content] =
[#1 Removal] = 0:15-0:16
[Content] =
[Removal] =
[Domain] = 0:15-0:16
>-<
0| typedef union { } Foo;

[#1 Domain] = 0:0-0:22
>----------------------<
0| typedef union { } Foo;

[#1 Insertion delimiter] = " "


[#2 Content] =
[#2 Removal] = 0:15-0:16
>-<
0| typedef union { } Foo;

[#2 Domain] = 0:14-0:17
>---<
0| typedef union { } Foo;

[#2 Insertion delimiter] = " "
[Insertion delimiter] = " "
35 changes: 4 additions & 31 deletions data/fixtures/scopes/c/interior/interior.doWhile.scope
Original file line number Diff line number Diff line change
@@ -1,37 +1,10 @@
do { } while (true);
---

[#1 Content] =
[#1 Removal] = 0:4-0:5
[Content] =
[Removal] =
[Domain] = 0:4-0:5
>-<
0| do { } while (true);

[#1 Domain] = 0:0-0:20
>--------------------<
0| do { } while (true);

[#1 Insertion delimiter] = " "


[#2 Content] =
[#2 Removal] = 0:4-0:5
>-<
0| do { } while (true);

[#2 Domain] = 0:3-0:6
>---<
0| do { } while (true);

[#2 Insertion delimiter] = " "


[#3 Content] =
[#3 Removal] = 0:14-0:18
>----<
0| do { } while (true);

[#3 Domain] = 0:13-0:19
>------<
0| do { } while (true);

[#3 Insertion delimiter] = " "
[Insertion delimiter] = " "
23 changes: 4 additions & 19 deletions data/fixtures/scopes/c/interior/interior.enum.scope
Original file line number Diff line number Diff line change
@@ -1,25 +1,10 @@
enum Foo { };
---

[#1 Content] =
[#1 Removal] = 0:10-0:11
[Content] =
[Removal] =
[Domain] = 0:10-0:11
>-<
0| enum Foo { };

[#1 Domain] = 0:0-0:13
>-------------<
0| enum Foo { };

[#1 Insertion delimiter] = " "


[#2 Content] =
[#2 Removal] = 0:10-0:11
>-<
0| enum Foo { };

[#2 Domain] = 0:9-0:12
>---<
0| enum Foo { };

[#2 Insertion delimiter] = " "
[Insertion delimiter] = " "
Loading
Loading