Spellbook
✨ Write once. Cast anywhere.
Welcome to the Spellbook, Scriptum’s feature-rich system for creating, managing, and casting reusable code snippets across your workflow.
Whether you need quick utilities, one-liner templates, or reusable logic blocks, the Spellbook lets you summon code with ease in the editor, in REPL, or even inside popups.
What Is the Spellbook?
The Spellbook is divided into two distinct spell types:
Live Spells
- Purpose: Fast, single-line snippets or templates.
- Access: Appear as suggestions via Intellisense.
- Use Case: Type a few letters, press Enter. Done.
- Scope: Meant for tiny incantations or repetitive templates.
Think of Live Spells as “code macros” that flow into your fingers.
Quick Spells
- Purpose: Full reusable scripts or logic blocks.
- Access: Triggered via
#+ search popup. - Use Case: Invoke code utilities on demand.
- Scope: Can include multiline code, specific execution mode, category, and icon.
Quick Spells are like scrolls: powerful, categorized, ready to cast.
