Tag Breakdown Generator

approved

by Hananoshika Yomaru

Break down nested tags into multiple parent tags.

โ˜… 11 starsโ†“ 2,741 downloadsUpdated 2y agoMIT
View on GitHub

Obsidian tag generator

Or it should be called obsidian tag break down. It breakdowns the nested tags into parent tags and added to the top of the file when you click save. For example,

#ai/image #a/b/c/d #a/b/c/c

will generate this

#a #a/b #a/b/c #ai

demo: https://www.youtube.com/watch?v=8M2VLRibpnQ

โœ… dead simple

Usage

  1. you need to install custom save plugin first
  2. then bind the tag generator: run on current file command to the custom save action
  3. there you go ๐ŸŽ‰

Install on obsidian plugin marketplace

you can download it on obsidian community plugin store.

Manual Install

  1. cd to .obsidian/plugins
  2. git clone this repo
  3. cd obsidian-tag-generator && bun install && bun run build
  4. there you go ๐ŸŽ‰

Update

  1. cd to .obsidian/plugins/obsidian-tag-generator
  2. git pull
  3. bun install && bun run build
  4. there you go ๐ŸŽ‰

Notes

  1. This plugins only work for tags in the body. Tags in the frontmatter will be ignored.
  2. The generator will recognise the comment block. If the comment block doesn't exist, it will create the block at the top of the file. If it exists, it will replace the block.
  3. to skip generation of this, you can put tag-gen-ignore: true to the frontmatter.
  4. to contribute, please file open a github issue first.

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.