Skip to content

Commit 7e31dd8

Browse files
Update action name
1 parent f78ee24 commit 7e31dd8

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

cursorless-talon-dev/src/cursorless_test.talon

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ 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_custom_command("chuck block")
35+
test api parsed: user.cursorless_x_custom_command("chuck block")
3636
test api parsed <user.cursorless_target>:
37-
user.cursorless_custom_command("chuck block <target>", cursorless_target)
37+
user.cursorless_x_custom_command("chuck block <target>", cursorless_target)
3838
test api parsed <user.cursorless_target> plus <user.cursorless_target>:
39-
user.cursorless_custom_command("bring block <target1> after <target2>", cursorless_target_1, cursorless_target_2)
39+
user.cursorless_x_custom_command("bring block <target1> after <target2>", cursorless_target_1, cursorless_target_2)

cursorless-talon/src/public_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def cursorless_create_destination(
2626

2727
@mod.action_class
2828
class CommandActions:
29-
def cursorless_custom_command(
29+
def cursorless_x_custom_command(
3030
content: str, # pyright: ignore [reportGeneralTypeIssues]
3131
arg1: Optional[Any] = None,
3232
arg2: Optional[Any] = None,

packages/cursorless-org-docs/src/docs/user/customization.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ _You can disable the default Cursorless reformat command by prefixing the spoken
209209

210210
_NOTE that this feature is experimental. Not as thoroughly tested as the rest of Cursorless and might change in the future_
211211

212-
`user.cursorless_custom_command(command: string, *args)`
212+
`user.cursorless_x_custom_command(command: string, *args)`
213213

214214
Run a custom Cursorless command by parsing the specified command string. Supports a subset of the Cursorless grammar, with **default** spoken forms (not your custom spoken forms). See https://www.cursorless.org/custom-command-railroad to see the subset of our grammar that we support today.
215215

@@ -221,19 +221,19 @@ Run a custom Cursorless command by parsing the specified command string. Support
221221
In order to map `"scratch"` to perform `"chuck block"`:
222222

223223
```talon
224-
scratch: user.cursorless_custom_command("chuck block")
224+
scratch: user.cursorless_x_custom_command("chuck block")
225225
```
226226

227227
To map `"scratch air"` => `"chuck block air"`
228228

229229
```talon
230230
scratch <user.cursorless_target>:
231-
user.cursorless_custom_command("chuck block <target>", cursorless_target)
231+
user.cursorless_x_custom_command("chuck block <target>", cursorless_target)
232232
```
233233

234234
To map `"combine air plus bat"` => `"bring block air after bat"`
235235

236236
```talon
237237
combine <user.cursorless_target> plus <user.cursorless_target>:
238-
user.cursorless_custom_command("bring block <target1> after <target2>", cursorless_target_1, cursorless_target_2)
238+
user.cursorless_x_custom_command("bring block <target1> after <target2>", cursorless_target_1, cursorless_target_2)
239239
```

0 commit comments

Comments
 (0)