Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 0 additions & 1 deletion cursorless-talon/src/spoken_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ def handle_new_values(csv_name: str, values: list[SpokenFormEntry]):
],
extra_allowed_values=[
"private.fieldAccess",
"private.switchStatementSubject",
"textFragment",
"disqualifyDelimiter",
"pairDelimiter",
Expand Down
7 changes: 2 additions & 5 deletions data/fixtures/recorded/languages/cpp/clearSubject.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
languageId: cpp
command:
version: 6
spokenForm: change subject
spokenForm: change value
action:
name: clearAndSetSelection
target:
type: primitive
modifiers:
- type: containingScope
scopeType: {type: private.switchStatementSubject}
scopeType: {type: value}
usePrePhraseSnapshot: true
spokenFormError: >-
simple scope type type with id private.switchStatementSubject; this is a
private spoken form currently only for internal experimentation
initialState:
documentContents: |
int main() {
Expand Down
7 changes: 2 additions & 5 deletions data/fixtures/recorded/languages/cpp/clearSubject2.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
languageId: cpp
command:
version: 6
spokenForm: change subject
spokenForm: change value
action:
name: clearAndSetSelection
target:
type: primitive
modifiers:
- type: containingScope
scopeType: {type: private.switchStatementSubject}
scopeType: {type: value}
usePrePhraseSnapshot: false
spokenFormError: >-
simple scope type type with id private.switchStatementSubject; this is a
private spoken form currently only for internal experimentation
initialState:
documentContents: |
int main() {
Expand Down
7 changes: 2 additions & 5 deletions data/fixtures/recorded/languages/java/clearSubject.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
languageId: java
command:
version: 6
spokenForm: change subject
spokenForm: change value
action:
name: clearAndSetSelection
target:
type: primitive
modifiers:
- type: containingScope
scopeType: {type: private.switchStatementSubject}
scopeType: {type: value}
usePrePhraseSnapshot: true
spokenFormError: >-
simple scope type type with id private.switchStatementSubject; this is a
private spoken form currently only for internal experimentation
initialState:
documentContents: |
class Aaa {
Expand Down
7 changes: 2 additions & 5 deletions data/fixtures/recorded/languages/java/clearSubject2.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
languageId: java
command:
version: 6
spokenForm: change subject
spokenForm: change value
action:
name: clearAndSetSelection
target:
type: primitive
modifiers:
- type: containingScope
scopeType: {type: private.switchStatementSubject}
scopeType: {type: value}
usePrePhraseSnapshot: true
spokenFormError: >-
simple scope type type with id private.switchStatementSubject; this is a
private spoken form currently only for internal experimentation
initialState:
documentContents: |
class Aaa {
Expand Down
7 changes: 2 additions & 5 deletions data/fixtures/recorded/languages/python/clearSubject.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
languageId: python
command:
version: 6
spokenForm: change subject
spokenForm: change value
action:
name: clearAndSetSelection
target:
type: primitive
modifiers:
- type: containingScope
scopeType: {type: private.switchStatementSubject}
scopeType: {type: value}
usePrePhraseSnapshot: true
spokenFormError: >-
simple scope type type with id private.switchStatementSubject; this is a
private spoken form currently only for internal experimentation
initialState:
documentContents: |
match 0:
Expand Down
7 changes: 2 additions & 5 deletions data/fixtures/recorded/languages/rust/changeSubject.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
languageId: rust
command:
version: 6
spokenForm: change subject
spokenForm: change value
action:
name: clearAndSetSelection
target:
type: primitive
modifiers:
- type: containingScope
scopeType: {type: private.switchStatementSubject}
scopeType: {type: value}
usePrePhraseSnapshot: true
spokenFormError: >-
simple scope type type with id private.switchStatementSubject; this is a
private spoken form currently only for internal experimentation
initialState:
documentContents: |
match user {
Expand Down
7 changes: 2 additions & 5 deletions data/fixtures/recorded/languages/scala/clearSubject.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
languageId: scala
command:
version: 6
spokenForm: change subject
spokenForm: change value
action:
name: clearAndSetSelection
target:
type: primitive
modifiers:
- type: containingScope
scopeType: {type: private.switchStatementSubject}
scopeType: {type: value}
usePrePhraseSnapshot: true
spokenFormError: >-
simple scope type type with id private.switchStatementSubject; this is a
private spoken form currently only for internal experimentation
initialState:
documentContents: |
def matchTest(x: Int): String = x match {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
languageId: typescript
command:
version: 6
spokenForm: change subject
spokenForm: change value
action:
name: clearAndSetSelection
target:
type: primitive
modifiers:
- type: containingScope
scopeType: {type: private.switchStatementSubject}
scopeType: {type: value}
usePrePhraseSnapshot: true
spokenFormError: >-
simple scope type type with id private.switchStatementSubject; this is a
private spoken form currently only for internal experimentation
initialState:
documentContents: |-
switch(aaa) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
languageId: typescript
command:
version: 6
spokenForm: change subject
spokenForm: change value
action:
name: clearAndSetSelection
target:
type: primitive
modifiers:
- type: containingScope
scopeType: {type: private.switchStatementSubject}
scopeType: {type: value}
usePrePhraseSnapshot: true
spokenFormError: >-
simple scope type type with id private.switchStatementSubject; this is a
private spoken form currently only for internal experimentation
initialState:
documentContents: |-
switch(aaa + 1) {
Expand Down
13 changes: 0 additions & 13 deletions data/fixtures/scopes/cpp/switchStatementSubject.scope

This file was deleted.

13 changes: 13 additions & 0 deletions data/fixtures/scopes/cpp/value.switch.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
switch (value) {}
---

[Content] =
[Removal] = 0:8-0:13
>-----<
0| switch (value) {}

[Domain] = 0:0-0:17
>-----------------<
0| switch (value) {}

[Insertion delimiter] = " "
20 changes: 0 additions & 20 deletions data/fixtures/scopes/csharp/switchStatementSubject.scope

This file was deleted.

20 changes: 0 additions & 20 deletions data/fixtures/scopes/csharp/switchStatementSubject2.scope

This file was deleted.

13 changes: 13 additions & 0 deletions data/fixtures/scopes/csharp/value.switch.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
switch (value) {}
---

[Content] =
[Removal] = 0:8-0:13
>-----<
0| switch (value) {}

[Domain] = 0:0-0:17
>-----------------<
0| switch (value) {}

[Insertion delimiter] = " "
13 changes: 0 additions & 13 deletions data/fixtures/scopes/java/switchStatementSubject.scope

This file was deleted.

13 changes: 13 additions & 0 deletions data/fixtures/scopes/java/value.switch.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
switch (value) {}
---

[Content] =
[Removal] = 0:8-0:13
>-----<
0| switch (value) {}

[Domain] = 0:0-0:17
>-----------------<
0| switch (value) {}

[Insertion delimiter] = " "
38 changes: 28 additions & 10 deletions data/fixtures/scopes/java/value/value.yield.scope
Original file line number Diff line number Diff line change
Expand Up @@ -6,39 +6,57 @@ switch (value) {
}
---

[#1 Content] = 2:14-2:19
[#1 Content] =
[#1 Removal] = 0:8-0:13
>-----<
0| switch (value) {

[#1 Domain] = 0:0-5:1
>----------------
0| switch (value) {
1| case 1:
2| yield "foo";
3| default:
4| yield "bar";
5| }
-<

[#1 Insertion delimiter] = " "


[#2 Content] = 2:14-2:19
>-----<
2| yield "foo";

[#1 Removal] = 2:13-2:19
[#2 Removal] = 2:13-2:19
>------<
2| yield "foo";

[#1 Leading delimiter] = 2:13-2:14
[#2 Leading delimiter] = 2:13-2:14
>-<
2| yield "foo";

[#1 Domain] = 2:8-2:20
[#2 Domain] = 2:8-2:20
>------------<
2| yield "foo";

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


[#2 Content] = 4:14-4:19
[#3 Content] = 4:14-4:19
>-----<
4| yield "bar";

[#2 Removal] = 4:13-4:19
[#3 Removal] = 4:13-4:19
>------<
4| yield "bar";

[#2 Leading delimiter] = 4:13-4:14
[#3 Leading delimiter] = 4:13-4:14
>-<
4| yield "bar";

[#2 Domain] = 4:8-4:20
[#3 Domain] = 4:8-4:20
>------------<
4| yield "bar";

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

This file was deleted.

Loading
Loading