[Macro] Prepend UID to note + copy UID and title above note text and format it
in The Archive
Hi,
I am a newbie in macro scripting so please feel free to comment or enhance it. Attached are two macros which basically do the same for me:
- macro
Prepend title with UID + copy infocan be started anywhere in Archive (e.g. when editing note) (my shortcut isalt-cmd-V) - macro
Prepend (open) title with UID + copy infocan be started only when you are in the middle of editing note title and you have not confirmed this edit yet - instead of hittingReturnortabyou hit macro shortcut (CMD-Returnin my case) - I prefer this second macro to first one usually due to how name my notes.
In both cases what macro does is (screenshots are from macro version 2 - starting from open title edit)



My UID differs slightly from The Archive method - I use only last two digits of the year, the rest is identical (1908131709 for today, now). If yours is different, you can change it easily in macro.
Howdy, Stranger!
Categories
- 3K All Categories
- 152 Research & Reading
- 692 The Zettelkasten Method
- 7 Knowledge Work
- 100 Writing
- 464 Software & Gadgets
- 154 Workflows
- 730 The Archive
- 15 Plug-In Showcase
- 88 Resolved Issues
- 225 Projects Logs and Journals
- 83 Project: Zettelkasten.de
- 53 Critique my Zettel
- 171 Random
- 373 Introduce Yourselves!

Comments
Hi @daneb and thanks for sharing your workflow and the macro!
I use a very similar macro, just that I always enter the UID (with the cmd-U shortcut) and the desired title in the search bar and then trigger the macro to create a new note for me with the desired head, cursor position, etc.
@daneb: In case you are interested, here's the macro I use after doing what I described in the post before: