Chapter 23
Use and create macros
Use a macro#
Enable a collection in Settings ▸ Library ▸ Macros, return to Edit, and type a macro’s trigger. Depending on its match type, it expands after the trigger, at a prefix, around a selection, or when a pattern matches.
Create one#
- Open Macros settings.
- Create or choose a collection.
- Choose New Macro.
- Give it a name, trigger, match type, and expansion.
- Enable it and decide whether it must avoid code.
- Save and test it in a disposable document.
An expansion can include variables for date, time, UUID, clipboard, selection, counter, filename, filepath, and custom values. Use variables when the structure repeats but a value changes.
Collections can be duplicated, renamed, exported, imported, enabled, disabled, and deleted. Built-in items may be promoted to editable user copies. If a macro fires unexpectedly, disable its collection, narrow its trigger, or turn on Don’t expand inside code.