-
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Checklist - [-] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [x] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [-] I have not broken the cheatsheet
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# How-to guides | ||
|
||
This section contains some how-to guides for common tasks. | ||
|
||
## How do I paste to a target? | ||
|
||
`"paste to air"` | ||
|
||
To replace a target with the contents of the clipboard, say `"paste to <target>"`. | ||
|
||
:::info | ||
|
||
`"to <target>"` is an example of a Destination. See [Destinations](reference/destinations.md) for more information. | ||
|
||
::: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Destinations | ||
|
||
Some actions expect a destination, rather than a target. Destinations combine a preposition and a target, to define a place and behavior for a Cursorless action. | ||
|
||
## `"to <target>"` | ||
|
||
Replaces the target. | ||
|
||
For example, `"paste to air"` replaces the token with a hat over the `a` with the contents of the clipboard. | ||
|
||
## `"after <target>"` | ||
|
||
Inserts after the target, adding delimiters as appropriate. | ||
|
||
For example, `"paste after air"` inserts a space after the token with a hat over the `a`, followed by the contents of the clipboard. | ||
|
||
## `"before <target>"` | ||
|
||
Inserts before the target, adding delimiters as appropriate. | ||
|
||
For example, `"paste before air"` inserts a space before the token with a hat over the `a`, then places the contents of the clipboard before the space. |