You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add `user.cursorless_create_destination` to the public API. See the [Talon-side api docs](../docs/user/customization.md#cursorless-public-api) and the example code in the [How do I run a custom Python transformation on a target?](../docs/user/how-to.md#how-do-i-run-a-custom-python-transformation-on-a-target) section for more information.
Create a destination from a target. The insertion mode can be `to`, `before`, or `after`, and defaults to `to`, which will replace the target. See [How do I run a custom Python transformation on a target?](./how-to.md#how-do-i-run-a-custom-python-transformation-on-a-target) for example usage.
Now, for example if you have a target `aardvark` with a hat over the `a`, you can say `"hello air"` to replace it with `Hello, aardvark!`.
78
+
79
+
:::info
80
+
81
+
See the [Talon-side api docs](./customization.md#cursorless-public-api) for more on creating custom Cursorless commands
82
+
83
+
:::
84
+
85
+
:::info
86
+
87
+
Notice how we use `cursorless_create_destination` to create a destination for the result of the transformation. The `cursorless_insert` action expects a destination, so that it knows whether to replace, insert before, or insert after the target. See [Destinations](reference/destinations.md) for more information.
0 commit comments