Search Window
The search window is CodeExpanderโs universal launcher. One global shortcut opens a floating window where you can search snippets, run plugin commands, launch apps, or chat with AI โ without ever touching the mouse.
Press your configured global shortcut (default varies by platform; set in Settings โ Keyboard). The window appears centered on screen, ready for input.
Search window tabs: Search, AI Assistant, Marketplace โ same labels as the app.
Three Modes
Switch between modes with the tab bar at the top:
| Mode | Icon | What it does |
|---|---|---|
| Search | ๐ | Search snippets, plugin commands, and system apps |
| AI Assistant | ๐ค | Chat with the built-in assistant |
| Marketplace | ๐งฉ | Browse and run installed plugins |
Search Mode
Search Snippets
Type any keyword to search across:
- Snippet names โ e.g.
sig,report - Abbreviations โ e.g.
ai-gen - Content โ full-text search inside snippet bodies
- Pinyin โ Chinese users can type pinyin to match Chinese-named snippets
Press Enter on a result to expand it instantly, or click to jump to the editor.
Run Plugin Commands
Plugins can define command triggers. When your input matches a plugin command, it appears in the list alongside snippets. Press Enter to run it directly.
Example: A โTimestamp converterโ plugin may define a ts command โ type ts 1714392000 and the plugin converts it to a readable date.
Launch Apps
Type the name of any installed application to launch it. Supports fuzzy matching and pinyin.
Example: Type chrome or guge (pinyin for ่ฐทๆญ) to launch Google Chrome.
Search Filters
Click the filter icon for advanced options:
| Filter | Description |
|---|---|
| Regex | Enable regular expression matching |
| Ignore case | Case-insensitive search |
| Scope | Limit search to snippet names, content, or both |
| File include/exclude | Filter by file patterns |
Empty State โ Quick Access
When the search box is empty, the window shows:
- Common โ Your most frequently used plugins (auto-learned)
- Pinned โ Plugins youโve manually pinned for instant access
Right-click a plugin to pin, hide, or uninstall.
AI Mode
Chat with the built-in AI assistant for:
- Code explanation and review
- Auto-generating comments
- Unit test generation
- General programming Q&A
The AI has access to your current context (e.g. selected files dragged into the search window) when relevant.
Plugin Mode
Browse all installed plugins as a grid. Click to open, or use the search box to filter by name or category.
From here you can:
- Install new plugins from npm (requires Node.js + npm)
- Import plugins from a local directory
- Uninstall unused plugins
- Open plugin details and settings
See Plugin Hub for full details.
Pro Tips
- Drag files into the search window to pass them to file-aware plugins
- Arrow keys navigate the list;
Enterexecutes;Esccloses - Pin frequently used plugins so theyโre always one shortcut away
- Use regex for power searches like
^api.*test
Typical Workflows
Developer Daily
- Press shortcut โ search window opens
- Type
try-pyโEnterโ boilerplate expands in your editor - Press shortcut again โ type
ts+ timestamp โ plugin converts it - Drag a log file into search โ file-aware plugin parses it
Remote Team Coordination
- Press shortcut โ AI mode
- Paste error message โ AI explains and suggests fix
- Switch to search โ find
deploysnippet โ expand in terminal
The AI Assistant tab can stream replies. Turn on MCP tools in Settings so it can call CodeExpander on this computer. Code from the chat can be written back into the snippet editor. See MCP ยท Inline search.
Power User Launcher
- Pin your top 5 plugins (e.g. timestamp, JSON formatter, color picker)
- Empty search shows them instantly
- One
Enteraway from any tool you need
Inline search
You are mid-email and only remember the signature is something like โsigโ. Stay in the field, type //sig, pick with the arrows, press Enter.
After // : filename, abbreviation, preview, env. โโ navigate, โต insert, Esc cancel. ExpandIn does not apply.
- Open Settings โ General and enable inline search.
- The prefix defaults to
//. You can change it to@@or similar. - The float can follow the caret or the pointer.
- โOnly expand in these appsโ does not block inline search, same as the search window.
Use this when you forget an abbreviation. For chat and the plugin marketplace, use the search window above.