Ctrl+P to instantly access files, run commands, switch buffers, or jump to any line — all with fuzzy matching.
Opening the Command Palette
| Shortcut | Action |
|---|---|
Ctrl+P | Open command palette |
Esc | Close command palette |
Command Palette Modes
The command palette has four distinct modes, each triggered by a prefix character:| Prefix | Mode | Description |
|---|---|---|
| (none) | File Finder | Fuzzy search for files in your project |
> | Commands | Search and run editor commands |
# | Buffers | Switch between open buffers by name |
: | Go to Line | Jump to a specific line number |
A hints line at the bottom of the palette shows available prefixes and their meanings.
File Finder Mode
The default mode — open files quickly with fuzzy matching:Fuzzy Matching
Fresh’s fuzzy matching is incredibly flexible:File Finder Behavior
Git Integration
Uses git to find files — only shows files tracked by git (respects
.gitignore)Fast
Indexes files in the background for instant results even in large projects
Smart Ranking
Files you’ve opened recently appear higher in results
Path Context
Shows full file paths to disambiguate files with the same name
Command Mode
Search and execute any editor command:Commonly Used Commands
View & Layout Commands
View & Layout Commands
- Split Vertical — Create side-by-side panes
- Split Horizontal — Create top/bottom panes
- Close Split — Remove current split
- Toggle File Explorer — Show/hide sidebar
- Toggle Line Wrap — Wrap long lines
- Toggle Line Numbers — Show/hide line numbers
File Operations
File Operations
- Save — Save current file
- Save As — Save to a new location
- Close Buffer — Close current file
- New File — Create a new buffer
- Revert File — Reload from disk
Editing Commands
Editing Commands
- Sort Lines — Sort selected lines alphabetically
- Trim Trailing Whitespace — Remove trailing spaces
- Toggle Comment — Comment/uncomment lines
- Go to Matching Bracket — Jump to matching brace
Search & Replace
Search & Replace
- Search and Replace in Project — Project-wide find/replace
- Query Replace — Interactive y/n/! replace
- Find Next — Jump to next search match
LSP Commands
LSP Commands
- Go to Definition — Jump to symbol definition
- Find References — Show all usages
- Rename Symbol — Rename across files
- Format Document — Auto-format code
- Code Actions — Show available fixes
Settings & Customization
Settings & Customization
- Open Settings — Open settings UI
- Select Theme — Browse and apply color themes
- Configure Keybindings — Open keybinding editor
- Set Language — Override file syntax highlighting
Buffer Switch Mode
Quickly switch between open files:Buffer vs File Finder: Buffer mode (
#) only shows currently open files, while file finder (no prefix) searches all files in your project.When to Use Buffer Mode
Use Buffer Mode When
- Switching between files you already have open
- You have many files open and want to filter by name
- You want to see what’s currently open
Use File Finder When
- Opening a file that isn’t currently open
- You don’t remember if the file is already open
- Exploring the project structure
Go to Line Mode
Jump directly to any line number:Large File Support
When working with large files:Wait for scan
Only the line index is kept in memory, not file contents. Over SSH, scanning runs server-side.
Command Palette Tips
No need to memorize prefixes
No need to memorize prefixes
You can always start typing in file finder mode (no prefix), then add
>, #, or : to switch modes mid-search.Tab for autocomplete
Tab for autocomplete
Press
Tab to accept the top suggestion in any mode. Great for quick file opening.Recent files appear first
Recent files appear first
The file finder ranks recently opened files higher, so your most-used files are always at the top.
Use command mode for discovery
Use command mode for discovery
Not sure what features Fresh has? Open command mode (
>) and type keywords to explore.Command palette works everywhere
Command palette works everywhere
You can open the command palette from any context — editor, terminal, settings — though some commands may only be available in specific contexts.
Keyboard Navigation
Navigate the command palette efficiently:| Shortcut | Action |
|---|---|
↑ / ↓ | Move selection up/down |
Enter | Execute selected item (open file, run command, etc.) |
Tab | Accept top suggestion |
Esc | Close command palette |
Backspace | Delete character (or clear prefix if at start) |
Examples and Workflows
Workflow 1: Quickly Open Related Files
Workflow 2: Split and Format
Workflow 3: Jump to Error
Customizing the Command Palette
While the command palette itself isn’t customizable, you can:Add Custom Keybindings
Bind frequently used commands to keyboard shortcuts. See Keyboard Configuration.
Create Aliases
Some commands have multiple names/aliases that appear in search results.
Performance
Indexing: File finder uses git which indexes your repository. First search may take a moment in very large repos, but subsequent searches are near-instant.
Related Documentation
Navigation
Learn about all navigation features
File Explorer
Browse files visually with the sidebar
Keyboard Configuration
Customize keyboard shortcuts