[KM Macro] Rename Note and Update Wikilinks to It
This Keyboard Maestro macro will rename a specified note and update all
[[wikilinks]] to it.
The macro assumes that wikilinks use the full filename of the target note, and will not be useful to anyone using explicit UIDs. A principal benefit of a UID scheme is of course that it should obviate the need for a macro like this.
Steps in the macro:
- The user is prompted for the note to be renamed, in an autocomplete list search.
- The user is prompted for the new title.
- The note to be renamed is backed up and renamed. Its modification time is updated.
- All wikilinks to
[[Old Title]]are replaced with
[[New Title]]. The modification time of other notes are not updated.