Command Palette
The Command Palette is your gateway to everything in Lokus. Master this one feature and you'll be incredibly productive.
Opening the Command Palette
Press โK
(Mac) or Ctrl+K
(Windows/Linux) from anywhere in Lokus to open the Command Palette.
Core Functions
File Operations
- Open File: Type the filename to quickly open any file in your workspace
- Create New File: Type "new file" or just "new"
- Create New Folder: Type "new folder"
- Save File: Type "save" (or just use
โS
)
Navigation
- Recent Files: See and open recently accessed files
- Go to Line: Type ":" followed by a line number
- Search in Files: Type "search" to search across your entire workspace
Quick Actions
- Toggle Sidebar: Type "sidebar" to show/hide the file browser
- Open Preferences: Type "preferences" or "settings"
- Command History: Use โ/โ arrows to navigate previous commands
Template Integration
One of the most powerful features is instant access to templates:
Inserting Templates
- Open Command Palette (
โK
) - Type "template" or "insert template"
- Browse available templates
- Select with Enter to insert with automatic variable processing
Template Search
- Quick Find: Type template names directly
- Category Browse: Templates are organized by type
- Recent Templates: Recently used templates appear first
Template Variables
When you insert a template, Lokus automatically processes:
{{date}}
- Current date{{time}}
- Current time{{user}}
- Your username{{cursor}}
- Cursor position after insertion
Pro Tips
Fuzzy Search
You don't need to type exact names:
- "nf" finds "New File"
- "tmp" finds templates
- "pre" finds "Preferences"
Keyboard Navigation
- โ/โ: Navigate results
- Tab: Cycle through suggestions
- Enter: Execute selected command
- Escape: Close palette
Command Memory
The Command Palette remembers:
- Your most-used commands
- Recently opened files
- Command history across sessions
Common Workflows
Quick File Creation
โK โ "new" โ Enter โ Start typing
Template-Based Writing
โK โ "template" โ Select template โ Variables auto-filled
Rapid Navigation
โK โ Type filename โ Enter โ File opens
Workspace Management
โK โ "sidebar" โ Toggle file browser
โK โ "preferences" โ Adjust settings
Advanced Usage
Custom Commands
If you're using plugins, they can add their own commands to the palette:
- Plugin-specific actions
- Custom shortcuts
- Extended functionality
Integration with Other Features
The Command Palette integrates seamlessly with:
Pro Tip: The Command Palette is designed to be your primary interface to Lokus. The faster you can use it, the more productive you'll be!
Next Step: Learn about Template Basics to supercharge your writing workflow.