Skip to main content

Prompt

The prompt is one of the most commonly used components in Ki, this is because unlike other editors, it is also the picker!

History

Every kind of prompt has its own history.

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.

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:

KindBehaviorExamples
PickerSelect current matching item upon entersymbol picker, file picker
PromptUse current search query upon entersearch prompt, rename prompt