Zettelkasten Forum


Keyboard Maestro Help Request - just UID from current file

So, I finally went for it and got Keyboard Maestro. All of the macros you all have published here have been immensely helpful, and are causing me to use The Archive more regularly than I had before, so I thank you all.

But now I'm trying to do a thing, and I am stuck. Can anyone help me with a macro that grabs to the clipboard_just_ the UID of the current file focused in The Archive? My use case is this: I frequently find myself creating files with a uid at the beginning of the filename, but then when I want to put that in a header or a back-link or metadata, I have to select it in the omnibar. I'd love to be able to hit a hotkey and just have it on the clipboard to paste wherever.

I have seen on here a bunch of examples of searching through the UIDs of an entire ZK, but I am stuck on how to reference the currently open file. Assume I am using a standard 12-digit uid, so a filename would be something like 201909232357 Great Idea.md and I just want 201909232357.

Thanks in advance!

Comments

Sign In or Register to comment.