Prompt
The prompt is one of the most commonly used components in Ki, this is because unlike other editors, it is also the picker!
Groups
The items of a prompt can be grouped, for example, the items of the file picker are grouped by their parent folder.
The group name of each item is also matched by the search query, in a disjunctive manner, i.e. an item will be matched if either its group name or its own name satisfies the search query.
Behaviour
The prompt has two behaviours:
| Kind | Behavior | Examples |
|---|---|---|
| Picker | Select current matching item upon enter | symbol picker, file picker |
| Text Input | Use current search query upon enter | search prompt, rename prompt |
History
Only text input prompts store histories, pickers do not.
For example, the search prompt stores the history of searches.
Unlike the usual prompts, however, the historical entries of a prompt are shown below the current line, starting with the most recent entry.
To navigate to historical entries, use Normal Mode.
enter is overridden to mean select the current item, it works in both Insert Mode and Normal mode.