VaultAI
VaultAI copied to clipboard
[FEAT] Custom Prompt Support
It would be great to have the ability to define custom prompts, allowing us to quickly trigger them from the chat box or command palette.
Hi @tuannvm!
Thanks for another excellent feature idea! 🎉
I've implemented custom prompt support for VaultAI. This feature is now available in the PR and will be included in the next release.
How to use:
📝 Create Custom Prompts:
- Go to Settings → VaultAI → Custom Prompts
- Click "Add Prompt"
- Set name, description, and prompt content
- Use
{{selection}}for selected text and{{content}}for full note content
⚡ Access Your Prompts:
- Chat Interface: Click the 📝 Prompts button next to the @ mention button
- Command Palette: Press Ctrl/Cmd+P → search "Custom Prompt: [your prompt name]"
- Hotkeys: Assign keyboard shortcuts to individual prompts in Obsidian settings
Example: Create a prompt named "Summarize" with content "Please summarize: {{selection}}" - then select text and quickly trigger it!
This makes it super easy to reuse common AI prompts without typing them repeatedly. Hope you find it useful!