Copilot Commands
How to use copilot commands.
How to Edit Copilot Commands
You can edit, add, and delete Copilot commands in two ways:
- In the Copilot settings under Command tab
- In the .md files in your custom prompts folder copilot-custom-prompts
How to Invoke Copilot Commands
You can invoke Copilot commands in three ways:
- Press Cmd + P (Mac) or Ctrl + P (Windows). In the search bar, type Copilotto list Copilot commands in the dropdown menu.
- Right-click selected text to see Copilot commands in the menu
- Slash command in the chat pane
Available Copilot Commands
Here's a list of all available Copilot commands in the Obsidian command palette (press cmd + P on Mac or ctrl + P on Windows).
- 
Add selection to chat context - Adds the selected text in note as context to chat
 
- 
Apply ad-hoc custom prompt - Opens a modal to enter and apply a one-time custom prompt
 
- 
Clear Copilot cache - Clears Copilot cache
 
- 
Clear local Copilot index - Clears the local vector store used for similarity search
 
- 
Count total tokens in your vault - Counts the number of total tokens of your vault
 
- 
Count words and tokens in selection - Counts and displays the number of words and tokens in the selected text
 
- 
Force reindex vault - Clears the vector store and re-indexes the entire vault
 
- 
Garbage collect Copilot index (remove files that no longer exist in vault) - Removes files that no longer exist in vault
 
- 
Index (refresh) vault - Indexes or refreshes the vault content in the vector store for question-answering
 
- 
Inspect Copilot index by note paths (debug) - Inspect Copilot index by note paths for debugging
 
- 
List all indexed files (debug) - Lists all indexed files for debugging purpose
 
- 
Load Copilot chat conversation - Opens a modal to load a previously saved chat conversation
 
- 
New Copilot Chat - Creates a new chat conversation
 
- 
Open Copilot Chat Window - Opens the Copilot Chat window in the right sidebar
 
- 
Remove files from Copilot index (debug) - Remove files from Copilot index for debugging
 
- 
Search OramaDB (debug) - Search OramaDB for debugging purposes
 
- 
Toggle Copilot Chat Window - Toggles the Copilot Chat window on/off in the right sidebar
 
These commands provide a wide range of text manipulation, analysis, and AI-assisted writing features within Obsidian.