Skip to content

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.

Four suggestors run in parallel on every keystroke:

SourceWhat it provides
History — commandsCommands from your shell history that match the current input
History — patternsRecurring command patterns extracted from history (e.g. git commit -m "...")
History — directoriescd targets from your history, ranked by how often you visit them
Spec commandsSubcommand and flag completions for 1000+ CLI tools

The top 3 history suggestions are always shown first; spec suggestions fill the remaining slots.

Press the keybind for cycle_completion_mode to switch between:

ModeShows
allHistory and spec suggestions combined
history-onlyOnly history-based suggestions
context-onlyOnly spec-based suggestions

The selected mode persists across sessions.

KeyAction
Tab / Select next suggestion
Select previous suggestion
EnterAccept selected suggestion
EscapeDismiss
trigger_autocomplete keybindOpen manually (default: Control+Space)
cycle_completion_mode keybindSwitch filter mode (default: Shift+Space)
SettingDefaultDescription
autocomplete.provider.timeout_ms160Max time in ms a spec provider may take before its results are skipped