Macros, export and discovery
Development reference · View source
Configured macros are new in 0.5. Use F6: {macro-keys: "wd"} for inline
key replay, or {macro: name} to reference a named definition:
keys:
macros:
delete-word: "wd"
bind:
normal:
F6: {macro: delete-word}
An undefined name reports unknown macro "name". A mapping containing both
forms or extra fields reports macro binding takes exactly one of macro or macro-keys, and cannot be a program step. Named macros can also be loaded from
macros.d/*.yaml beside the loaded configuration; reload to activate saved files.
See macros
for compact key notation and limits.
:macro-save <name> [@register]writes a new macro file without overwriting one.:copy-macro [name | @register [name]]copies a reusablekeys.macrosentry.Space m llists recorded and configured macros together.Space h k,Space h a, andSpace h minspect keys, actions, and modes.:copy-key-bindingcopies the inspected effective binding.:keymap-export [path]writes a new effective YAML configuration fragment, including mode declarations, role maps and configured macros. It preserves effective behavior on reload rather than the layout of your source files. Existing files are not overwritten. See exporting for the boundary around list/UI configuration. Reload against the same preset, platform and fast-pane-key setting; plugin registrations remain external.
These commands are additions; existing recordings need no automatic conversion.