Action names and programs
Development reference · View source
Subject-first names replace 112 family spellings, for example select-register
→ register-select, record-macro → macro-record, and list-macros →
macro-list. Viewport actions use view-*, existing-selection operations use
selection-*/selections-*, and pane actions use pane-*. Both
expand-syntax-selection and syntax-expand-selection now point directly to
syntax-extend-selection. Ctrl-w, keys.window, pointer actions and the
separate UI action names stay unchanged. The complete old/new table
is the migration checklist. These are removals, not aliases: the diagnostic is
<old-name> was removed in 0.5; use <new-name>. Matching colon command spellings
also change; unrelated shorter colon commands, such as :terminal, remain.
Argument mappings change from {command: pipe, argument: sort} to
{action: pipe, arg: sort}. The parser reports:
use an action name or { action: <name>, arg: <argument> }; { command:, argument: } and { name: arg } are not supported
The four bundled mode-entry actions are removed. Replace each action with the following program, including inside an existing sequence:
| Old action | New 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}] |
Each diagnostic starts <old-name> was removed in 0.5; use and prints the
replacement program. mode-enter alone changes mode; it does not fit or collapse
the selection. Role aliases resolve for the current buffer type. The
other removed bundled actions
include yank-and-collapse, change and directory-tree navigation; their diagnostics
also print compiling replacements. Atomic selection/edit actions preserve mode;
append the intended mode step rather than relying on a former side effect.
Programs support conditionals and per-step count, register and extend.
Prompts, background work and plugin commands remain last-only. A supported
argument can remove a prompt requirement, but never a background or plugin
last-only requirement. Character-operand steps can pause and resume.
A binding shares one undo group, including typing when it ends in Insert or
Replace. See action sequences
.