Zettelkasten Forum

Fastest way to get ZettelID into the note body

When creating a new note in The Archive, what’s the fastest way to get the ZettelID and include that in the note’s body?

(I’m thinking that including the ID in the body is a good way to prepare for a situation where some software by mistake changes the name of the notes.)


  • It depends how your surrounding workflow is.

    I am a Zettler

  • The case I had in mind: A note just created in The Archive.

  • Say I'm in a note and wanted to create a new one:

    esc Command-u type-title return Command-l command-c tab # space command-v

    This begs for automation:-)

    Kind regards,
    Dick Barends

  • In that case:


    I am a Zettler

  • I'm using Keyboard Maestro to do this. I have a universal keyboard shortcut for creating a new note in The Archive; one step is creating a Zettelkasten ID (yyyyMMddhhmm) within KM instead of using command-U.

    I use that same string in creating the note (so it goes in the name) and in the body of the note where I (redundantly) store it as zk_id: yyyyMMddhhmm, along with some other metadata I usually add to new notes. The final part of the KM script puts my cursor back at the top of the note so I can start typing without worrying about the metadata at the bottom.

    The reason I add the zk_id in the note body is so I can easily find the original note (by searching for zk_id: yyyyMMddhhmm) or for it and any note referencing it (by just searching yyyyMMddhhmm). I can also use KM or other scripts to get the zk_id of the current note and copy it to the clipboard, or for other purposes. Then I only rarely need to interact with the ID directly, but it still serves the purpose of linking notes.

  • @tf2 can you post that KM macro?? I've been meaning to create one myself along those lines.

    This is Me

Sign In or Register to comment.