Skip to content

Commit 9d1ded5

Browse files
Merge branch 'main' into removedLegacy
2 parents 183491c + 31cd14b commit 9d1ded5

File tree

258 files changed

+6775
-3082
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

258 files changed

+6775
-3082
lines changed

.github/actions/test-neovim-lua/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ runs:
77
with:
88
luaVersion: "luajit-openresty"
99
- uses: leafo/gh-actions-luarocks@v5
10+
with:
11+
luarocksVersion: "3.12.0"
1012
- shell: bash
1113
run: |
1214
luarocks install busted

.github/workflows/test.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,13 @@ jobs:
100100
env:
101101
NEOVIM_PATH: ${{ steps.vim.outputs.executable }}
102102

103-
# FIXME: Re-enable neovim lua tests
104-
# https://github.com/cursorless-dev/cursorless/issues/2946
105-
# - name: Run neovim lua tests (Linux)
106-
# uses: ./.github/actions/test-neovim-lua/
107-
# if: runner.os == 'Linux' && matrix.app_version == 'stable'
108-
109-
# - name: Run neovim lua lint (Linux)
110-
# uses: ./.github/actions/lint-lua-ls/
111-
# if: runner.os == 'Linux' && matrix.app_version == 'stable'
103+
- name: Run neovim lua tests (Linux)
104+
uses: ./.github/actions/test-neovim-lua/
105+
if: runner.os == 'Linux' && matrix.app_version == 'stable'
106+
107+
- name: Run neovim lua lint (Linux)
108+
uses: ./.github/actions/lint-lua-ls/
109+
if: runner.os == 'Linux' && matrix.app_version == 'stable'
112110

113111
- name: Create vscode dist that can be installed locally
114112
run: pnpm -F @cursorless/cursorless-vscode populate-dist --local-install

cursorless-talon-dev/src/cursorless_test.talon

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ test api extract decorated marks <user.cursorless_target>:
3232
test api alternate highlight nothing:
3333
user.private_cursorless_test_alternate_highlight_nothing()
3434

35-
test api parsed: user.cursorless_x_custom_command("chuck block")
35+
test api parsed chuck block: user.cursorless_x_custom_command("chuck block")
36+
test api parsed take next token: user.cursorless_x_custom_command("take next token")
37+
test api parsed change next instance: user.cursorless_x_custom_command("change next instance")
3638
test api parsed <user.cursorless_target>:
3739
user.cursorless_x_custom_command("chuck block <target>", cursorless_target)
3840
test api parsed <user.cursorless_target> plus <user.cursorless_target>:

data/fixtures/recorded/languages/cpp/clearSubject2.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ initialState:
2828
finalState:
2929
documentContents: |
3030
int main() {
31-
switch (int i = rand() % 100; ) {
31+
switch () {
3232
default:
3333
break;
3434
}
3535
}
3636
selections:
37-
- anchor: {line: 1, character: 32}
38-
active: {line: 1, character: 32}
37+
- anchor: {line: 1, character: 10}
38+
active: {line: 1, character: 10}

data/fixtures/recorded/languages/rust/changeArgBlueAir.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
languageId: rust
22
command:
33
version: 6
4-
spokenForm: change arg blue air
4+
spokenForm: change type blue air
55
action:
66
name: clearAndSetSelection
77
target:
88
type: primitive
99
modifiers:
1010
- type: containingScope
11-
scopeType: {type: argumentOrParameter}
11+
scopeType: {type: type}
1212
mark: {type: decoratedSymbol, symbolColor: blue, character: a}
1313
usePrePhraseSnapshot: true
1414
initialState:

data/fixtures/recorded/languages/rust/changeArgSun.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
languageId: rust
22
command:
33
version: 6
4-
spokenForm: change arg sun
4+
spokenForm: change type sun
55
action:
66
name: clearAndSetSelection
77
target:
88
type: primitive
99
modifiers:
1010
- type: containingScope
11-
scopeType: {type: argumentOrParameter}
11+
scopeType: {type: type}
1212
mark: {type: decoratedSymbol, symbolColor: default, character: s}
1313
usePrePhraseSnapshot: true
1414
initialState:

data/fixtures/recorded/languages/rust/changeArgTrap.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
languageId: rust
22
command:
33
version: 6
4-
spokenForm: change arg trap
4+
spokenForm: change type trap
55
action:
66
name: clearAndSetSelection
77
target:
88
type: primitive
99
modifiers:
1010
- type: containingScope
11-
scopeType: {type: argumentOrParameter}
11+
scopeType: {type: type}
1212
mark: {type: decoratedSymbol, symbolColor: default, character: t}
1313
usePrePhraseSnapshot: true
1414
initialState:

data/fixtures/recorded/languages/rust/changeArgTrapAndBlueTrap.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
languageId: rust
22
command:
33
version: 6
4-
spokenForm: change arg trap and blue trap
4+
spokenForm: change arg trap and type blue trap
55
action:
66
name: clearAndSetSelection
77
target:
@@ -13,6 +13,9 @@ command:
1313
scopeType: {type: argumentOrParameter}
1414
mark: {type: decoratedSymbol, symbolColor: default, character: t}
1515
- type: primitive
16+
modifiers:
17+
- type: containingScope
18+
scopeType: {type: type}
1619
mark: {type: decoratedSymbol, symbolColor: blue, character: t}
1720
usePrePhraseSnapshot: true
1821
initialState:

data/fixtures/recorded/languages/rust/changeNameDrum2.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
languageId: rust
22
command:
33
version: 6
4-
spokenForm: change name drum
4+
spokenForm: change key drum
55
action:
66
name: clearAndSetSelection
77
target:
88
type: primitive
99
modifiers:
1010
- type: containingScope
11-
scopeType: {type: name}
11+
scopeType: {type: collectionKey}
1212
mark: {type: decoratedSymbol, symbolColor: default, character: d}
1313
usePrePhraseSnapshot: true
1414
initialState:

data/fixtures/recorded/languages/rust/changeNameDrum3.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
languageId: rust
22
command:
33
version: 6
4-
spokenForm: change name drum
4+
spokenForm: change key drum
55
action:
66
name: clearAndSetSelection
77
target:
88
type: primitive
99
modifiers:
1010
- type: containingScope
11-
scopeType: {type: name}
11+
scopeType: {type: collectionKey}
1212
mark: {type: decoratedSymbol, symbolColor: default, character: d}
1313
usePrePhraseSnapshot: true
1414
initialState:

0 commit comments

Comments
 (0)