Raycast Cheatsheet
Snippets

Snippets are text shortcuts that expand to longer content using Tab trigger.

Creating Snippets:

  • βŒ₯Space β†’ “Create Snippet”
  • Set trigger text (e.g., “email”)
  • Write snippet content
  • Enable dynamic variables as needed

Dynamic Variables in Snippets:

Variable Description Example
{date} Today’s date 2026-02-15
{time} Current time 14:30
{datetime} Date and time 2026-02-15 14:30
{clipboard} Clipboard content Pastes current clipboard
{cursor} Places cursor here Leaves cursor at position
{name} Your Mac name Computer name

Snippet Syntax Example:

Name: Meeting Notes
Trigger: @meeting
Content:
Meeting Date: {date}
Time: {time}
Attendees: 
Notes:
[cursor here]
Script Commands

Script Commands let you run bash, Python, or Node.js scripts from Raycast.

Supported Languages:

  • Bash/Shell
  • Python 3
  • Node.js
  • Swift
  • Zsh

Script Structure:

#!/bin/bash
# @raycast.schemaVersion 1
# @raycast.title My Script
# @raycast.description Does something cool
# @raycast.author bee
# @raycast.mode compact
# @raycast.icon πŸš€
# @raycast.argument1 { "type": "text", "placeholder": "Enter text" }

echo "Hello $1"

Input Modes:

  • compact - Output shown in Raycast window
  • fullOutput - Opens dedicated window
  • silent - No output window

Argument Types:

  • text - Plain text input
  • file - File path picker
  • directory - Directory picker
  • checkbox - Boolean flag
  • dropdown - Selection from list
Extensions & Store

Installing Extensions:

  • βŒ₯Space β†’ “Install Extension”
  • Browse community extensions
  • Click “Install” to add to Raycast

Creating Extensions (with React):

  1. Install Raycast CLI: npm install -g @raycast/cli
  2. Create extension: raycast create extension
  3. Build components in React
  4. Use Raycast UI library for consistency
  5. Test locally: npm run dev

Publishing Extensions:

  • Push to GitHub repository
  • Submit to Raycast Store
  • Automatic updates via Store

Popular Built-in Extensions:

  • Clipboard History
  • File Search
  • Quick Links
  • Snippets
  • Floating Notes
  • Calculator
  • Timezone
  • Weather
Confetti

Confetti is a celebratory easter egg in Raycast.

Triggering Confetti:

  • βŒ₯Space β†’ Search “confetti”
  • Press Enter to celebrate
  • Works great for task completion

URL Scheme:

raycast://confetti

Pro Tip: Add “Confetti” as a quick link for celebration commands or embed in scripts for workflow celebrations.

Fallback Commands

Fallback Commands execute when you type something Raycast can’t match.

Setting Up Fallback:

  1. Open Preferences (⌘,)
  2. Go to “Extensions”
  3. Configure fallback command
  4. Choose: Web Search, Calculator, or Custom Script

Built-in Fallback Options:

  • Web Search (default Google)
  • Calculator (inline math)
  • Custom script/command

Example: Custom Fallback Script

#!/bin/bash
# Fallback to DuckDuckGo search
open "https://duckduckgo.com/?q=$*"
Aliases

Aliases provide quick access to commands using custom names.

Creating an Alias:

  1. Search for command in Raycast
  2. Press ⌘K to open actions
  3. Select “Create Alias”
  4. Enter alias name (e.g., “em” for email)
  5. Save

Example Aliases:

Alias Command
em Send Email
ws Web Search
calc Calculator
notes Create Note
kill Kill Process

Usage: Type alias directly in Raycast search to access command instantly.

Floating Notes

Floating Notes provide quick capture of text without leaving current app.

Features:

  • Always-on-top note window
  • Markdown support
  • Quick paste from clipboard
  • Auto-save
  • Keyboard shortcut (customizable)

Using Floating Notes:

  1. Open Raycast β†’ “Floating Notes”
  2. Type or paste content
  3. Window stays on top while you work
  4. Content auto-saves
  5. Search notes anytime

Markdown in Floating Notes:

# Heading
- List items
**bold** text
[links](https://example.com)

Pro Tip: Pin important notes for easy access later.

AI Integration

Raycast includes built-in AI capabilities.

AI Features:

  • Ask AI for general questions
  • AI-powered commands
  • Custom AI presets
  • Summarize text
  • Generate content

Quick AI Actions:

  • Improve Writing
  • Make Longer
  • Make Shorter
  • Professional Tone
  • Friendly Tone
  • Fix Spelling & Grammar

Custom AI Commands:

  1. Create Script Command
  2. Use Raycast API for AI
  3. Define prompt and instructions
  4. Set input/output format

Example AI Command:

#!/bin/bash
# @raycast.schemaVersion 1
# @raycast.title AI Prompt
# @raycast.argument1 { "type": "text" }

# Send to Raycast AI API
# Results appear in Raycast
Tips & Tricks

Hotkey Per Command:

  • Assign unique hotkey to any command
  • Settings β†’ Extensions β†’ Select extension
  • Click command and assign hotkey
  • Use for frequently accessed commands

Navigation Tricks:

  • Type to search instantly
  • ↑↓ to navigate results
  • β†’ to open actions panel
  • ← to go back
  • Escape to close

Clipboard History Power:

  • Search clipboard by content
  • Pin frequently used items
  • Delete sensitive items
  • Sync across devices

File Search Pro Tips:

  • Search by extension: .pdf
  • Search by modification: modified:1d
  • Combine with Quick Look (⌘Enter)
  • Drag files into Raycast

Productivity Hacks:

  • Create aliases for complex commands
  • Chain Quick Links with snippets
  • Use fallback for custom workflows
  • Automate with Script Commands
  • Integrate with other apps via URL schemes

Performance:

  • Disable unused extensions
  • Update Raycast regularly
  • Clear clipboard history periodically
  • Rebuild search index in preferences