Per-step count, register and extension
Development reference · View source
Action mappings accept these optional fields:
| Field | Values | Meaning |
|---|---|---|
count | inherit, none, or an integer from 1 to 999999 | Reuse the binding-entry count, run without a count, or use a fixed count. Requires a count-accepting action. |
register | inherit, none, or a quoted printable Unicode scalar | Reuse the binding-entry register, use the unnamed register, or select a fixed register. Requires a register-using action. |
extend | true or false | Extend from the existing anchor or move a caret for this motion only. Requires a supported motion and does not change mode. |
Without a field, the first eligible executed step consumes that pending prefix.
Later eligible steps run without a count or use the unnamed register. Fixed,
none, and inherit overrides leave the pending prefix available; skipped
branches consume nothing. register-select explicitly updates the pending
register, while register: inherit still refers to the binding-entry prefix.
An operand wait preserves both captured and pending values. Any unused entry
prefix is discarded with its binding; it cannot affect the next key binding.
keys:
bind:
normal:
F6:
- {action: move-right, count: 2, extend: true}
- {action: yank, register: a}
- {action: move-right, count: inherit, extend: false}
Without extend, the motion uses its normal selection policy. With the field,
that policy is overridden for this step, including in a preset without Select.
The action browser and generated reference list count, register, and extension
support; describe-key and copy-key-binding retain the authored options.
UI owners (list, session-manager, git-merge-review,
git-merge-detail, and git-merge-input) accept a single plain action in 0.5,
as a name or {action: <name>}. They reject step lists, conditionals, arguments
and step options; null still removes a binding. Conditions below apply only
where editor programs execute.