# Clipboard, selection & cursor

Insert clipboard contents, selected text, or control cursor placement.

## Clipboard

`{clipboard}` inserts whatever you last copied.

```
FYI: {clipboard}
```

### Clipboard history

Use `offset` to reach further back in your clipboard history. `0` is the most recent item (the default):

```
{clipboard}              →  most recent item
{clipboard offset="1"}  →  second most recent item
{clipboard offset="2"}  →  third most recent item
```

## Selection

`{selection}` inserts text that was selected in the current app at expansion time.

```
> {selection}

—
```

This turns a selected passage into a blockquote with a signature — useful for quoting in email replies.

:::note
`{selection}` requires the current app to support text selection reporting. It may not work in all apps.
:::

## Cursor

`{cursor}` marks where the cursor lands after a snippet expands. Without it, the cursor goes to the end.

```
Dear {cursor},

Thank you for reaching out.
```

After expansion the cursor is placed inside the greeting, ready for you to type the recipient's name.

Each snippet can have at most one `{cursor}`. If you need to fill in multiple spots, use [`{argument}`](/placeholders/arguments/) instead.

## UUID

`{uuid}` inserts a randomly generated UUID (version 4):

```
id: {uuid}    →    id: 7f3a1c2e-4b8d-4e9f-a012-3456789abcde
```

## Snippet inclusion

`{snippet name="…"}` expands another snippet inline:

```
{snippet name="email-footer"}
```

Constraints:
- Snippets cannot be nested recursively — the referenced snippet cannot itself contain a `{snippet}` placeholder
- Referenced snippets are expanded as plain text (no further `{snippet}` resolution)
