Autocomplete
Cogno shows suggestions as you type. The panel appears above or below the cursor and displays up to 6 entries at a time, with up to 100 suggestions ranked by relevance.
Suggestion sources
Section titled “Suggestion sources”Four suggestors run in parallel on every keystroke:
| Source | What it provides |
|---|---|
| History — commands | Commands from your shell history that match the current input |
| History — patterns | Recurring command patterns extracted from history (e.g. git commit -m "...") |
| History — directories | cd targets from your history, ranked by how often you visit them |
| Spec commands | Subcommand and flag completions for 1000+ CLI tools |
The top 3 history suggestions are always shown first; spec suggestions fill the remaining slots.
Filter modes
Section titled “Filter modes”Press the keybind for cycle_completion_mode to switch between:
| Mode | Shows |
|---|---|
all | History and spec suggestions combined |
history-only | Only history-based suggestions |
context-only | Only spec-based suggestions |
The selected mode persists across sessions.
Keyboard
Section titled “Keyboard”| Key | Action |
|---|---|
Tab / ↓ | Select next suggestion |
↑ | Select previous suggestion |
Enter | Accept selected suggestion |
Escape | Dismiss |
trigger_autocomplete keybind | Open manually (default: Control+Space) |
cycle_completion_mode keybind | Switch filter mode (default: Shift+Space) |
Configuration
Section titled “Configuration”| Setting | Default | Description |
|---|---|---|
autocomplete.provider.timeout_ms | 160 | Max time in ms a spec provider may take before its results are skipped |