Template Variables
Text & Clipboard Variables
Manipulate text, access clipboard history, and manage cursor position.
These variables allow you to pull content directly from your clipboard, capture text you've highlighted on screen, transform text casing, and precisely position your typing cursor after expansion.
#{clipboard} — Paste Clipboard Content
Inserts whatever text is currently sitting on your system clipboard.
- Use case: Creating a templated reply where the recipient's name is whatever you just copied.
(You copy the name "Alice" to your clipboard, then type the keyword)
Output: Thank you for your email, Alice. I'll review it shortly.
#{selection} — Capture Selected Text
Captures text that is currently highlighted (selected) in your active application, just before the snippet expands.
- How to use it: Highlight a word with your mouse, then type your snippet keyword directly over it.
- Use case: Quickly turning a raw URL into a formatted Markdown link.
(You highlight "https://example.com", then type your keyword)
Output: [Link](https://example.com)
#{cursor} — Position the Cursor
After the snippet finishes expanding, your typing cursor is normally placed at the very end. By placing #{cursor} in your snippet, you force the cursor to land at that specific position instead.
- Rule: Only one
#{cursor}should appear per snippet. If you add more, the extra ones are ignored.
Result: The text expands, and your cursor lands immediately after "Dear ", ready for you to type the person's name.