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#

  1. Open Macros settings.
  2. Create or choose a collection.
  3. Choose New Macro.
  4. Give it a name, trigger, match type, and expansion.
  5. Enable it and decide whether it must avoid code.
  6. 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.