VaultAI icon indicating copy to clipboard operation
VaultAI copied to clipboard

[FEAT] Custom Prompt Support

Open tuannvm opened this issue 1 year ago • 1 comments

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.

tuannvm avatar Sep 15 '25 17:09 tuannvm

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:

  1. Go to Settings → VaultAI → Custom Prompts
  2. Click "Add Prompt"
  3. Set name, description, and prompt content
  4. 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!

0xneobyte avatar Sep 16 '25 13:09 0xneobyte