Create tag based on draft title

Okay, that does help.

Here’s a reworked action:

  • I’ve renamed the prompt variables to make them a little more meaningful.
  • I’ve taken much of the basis of the code I posted above an applied it to the code of the action.
  • I’ve switched it to using the display title (as per Greg’s earlier suggestion) as it then strips off any leading Markdown. It could just as easily reference the same template tag as used in the template of course.

Does that now cover what you wanted?


As an aside, for Zettelkasten, do not forget you can use intra-draft linking rather than tagging. Using these cross-links will give you immediate access in regards to navigation, and you can use actions to generate and check back-links too; see the ThoughtAsylum - Management (Linking action section) and Examples: Cross-Linking action groups.

There’s quite a good thread around Zettelkasten in Drafts here:

But, you can find many Zettelkasten-related threads here:

https://forums.getdrafts.com/search?q=zettelkasten

1 Like