https://github.com/HananoshikaYomaru/obsidian-tag-generator
Break down nested tags into multiple parent tags
https://github.com/HananoshikaYomaru/obsidian-tag-generator
Last synced: 4 months ago
JSON representation
Break down nested tags into multiple parent tags
- Host: GitHub
- URL: https://github.com/HananoshikaYomaru/obsidian-tag-generator
- Owner: HananoshikaYomaru
- License: mit
- Created: 2023-09-25T12:42:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-21T03:57:22.000Z (over 1 year ago)
- Last Synced: 2024-08-13T07:17:27.240Z (8 months ago)
- Language: TypeScript
- Homepage: https://yomaru.dev
- Size: 238 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - HananoshikaYomaru/obsidian-tag-generator - Break down nested tags into multiple parent tags (TypeScript)
README
# 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,
```md
#ai/image #a/b/c/d #a/b/c/cwill generate this
#a #a/b #a/b/c #ai
```demo:
✅ 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.