User guide / Custom key bindings

Removed bundled mode actions

Development reference · View source

The four enter-*-mode actions are removed in 0.5. Configuration using them is rejected with a complete replacement program:

Removed actionReplacement program
enter-normal-mode[fit-selection-for-normal-mode, {action: mode-enter, arg: normal}]
enter-insert-mode[{action: mode-enter, arg: insert}, selection-collapse-start]
enter-replace-mode[{action: mode-enter, arg: replace}, selection-collapse-head]
enter-select-mode[{action: mode-enter, arg: select}]

Mode entry comes first for Insert and Replace, so refusal on a read-only buffer does not change its selection. The raw start and head collapses produce point selections without converting half-open endpoints. Ordinary selection-collapse first converts a half-open selection to inclusive coordinates; its cursor can therefore differ from the raw head used by Replace.