Text expansions are the heart of Agentastic. In this guide, you'll create your first custom expansion and learn the fundamentals of how expansions work.
What is a Text Expansion?
A text expansion is a shortcut that automatically replaces abbreviated text with longer content. For example:
- Type
addr→ Expands to your full address - Type
ty→ Expands to "Thank you" - Type
sig→ Expands to your email signature
Creating a Simple Expansion
Let's create your first expansion using the Agentastic Launcher:
-
Open the Launcher
- Press
⌘+Space(or your custom shortcut) - The Agentastic overlay will appear
- Press
-
Access Settings
- Click the gear icon (⚙️) in the launcher
- Select "Manage Expansions"
-
Create New Expansion
- Click "Add Expansion"
- Fill in the details:
- Trigger:
myemail - Replacement: Your actual email address
- Description: "My email address"
- Trigger:
-
Save and Test
- Click "Save"
- Open any text field
- Type
myemailand press space - Watch it expand to your email address!
Understanding Triggers
Triggers are the abbreviations that activate expansions. Good triggers are:
- Memorable - Easy to remember
- Unique - Won't accidentally trigger
- Short - Save typing time
- Consistent - Follow a pattern
Trigger Examples
| Purpose | Trigger | Expands To |
|---|---|---|
eml | john.doe@example.com | |
| Phone | phn | (555) 123-4567 |
| Address | addr | 123 Main St, City, State 12345 |
| Date | ddate | November 15, 2024 |
| Signature | sig | Best regards, John Doe |
Expansion Options
When creating expansions, you can customize:
Case Sensitivity
- Default: Case-insensitive (
Emailandemailboth work) - Option: Make triggers case-sensitive when needed
Word Boundaries
- Default: Triggers need spaces or punctuation around them
- Option: Allow triggers within words
Cursor Position
- Use
{{cursor}}to set where your cursor lands after expansion - Example:
Hello {{cursor}}, how are you?
Creating Useful Expansions
Here are some expansions to get you started:
Common Phrases
Trigger: ty
Replacement: Thank you
Trigger: yw
Replacement: You're welcome
Trigger: brb
Replacement: Be right back
Professional Communication
Trigger: mtg
Replacement: meeting
Trigger: fup
Replacement: follow up
Trigger: eod
Replacement: end of day
Formatted Content
Trigger: sig
Replacement:
Best regards,
{{name}}
{{title}}
{{company}}
Using Variables
Agentastic supports dynamic variables in expansions:
{{date}}- Today's date{{time}}- Current time{{clipboard}}- Contents of clipboard{{cursor}}- Cursor position after expansion
Example expansion with variables:
Trigger: dnote
Replacement: Daily note for {{date}} at {{time}}:
{{cursor}}
Tips for Effective Expansions
- Start Small - Create 5-10 expansions you'll use daily
- Use Patterns - Develop consistent trigger naming
- Review Regularly - Update expansions as needs change
- Avoid Conflicts - Don't use common words as triggers
Managing Expansions
Edit Existing Expansions
- Open Launcher (
⌘+Space) - Go to Settings → Manage Expansions
- Click on any expansion to edit
- Save changes
Delete Expansions
- Select the expansion
- Click "Delete" or press
⌫ - Confirm deletion
Import/Export
- Export expansions for backup
- Share expansion sets with team members
- Import pre-made expansion packs
What's Next?
Now that you've created your first expansion:
- Learn essential keyboard shortcuts
- Explore AI-powered completions
- Discover advanced expansion features
Practice Exercise
Create these five expansions to practice:
- Your email address
- Your phone number
- A greeting phrase you use often
- Today's date format
- A multi-line signature
Once comfortable with basic expansions, you're ready to explore Agentastic's powerful AI features!