Tag Aliases
pendingby majiajun
Define tag aliases to normalize tags at input time. When you type an alias, the plugin suggests and inserts the primary tag, keeping your vault's tags clean and consistent.
Tag Aliases
An Obsidian plugin that lets you define tag aliases so your vault stays consistent. When you type an alias like #js, the plugin suggests the primary tag #javascript — keeping your tags clean without memorizing every variation.
The Problem
You tag notes with #js, #javascript, #JavaScript — all meaning the same thing. Later, searching for #javascript misses notes tagged #js. Over time, your vault accumulates dozens of inconsistent tags for the same concepts.
The Solution
Tag Aliases normalizes tags at input time:
- Define alias groups — e.g., primary tag
#javascriptwith aliases#js,#JS - Type any alias — the plugin intercepts Obsidian's tag suggestion and shows the primary tag
- Select and insert — the primary tag is inserted, not the alias
Since all notes end up with the same canonical tag, native search, Dataview, and the tag pane just work.
Features
- Alias Group Management — Create, edit, and delete alias groups in the settings panel
- Smart Tag Suggestions — Overrides Obsidian's tag autocomplete with alias-aware suggestions
- Auto-Replace — Optionally auto-replace alias tags that slip through (configurable)
- Batch Migration — Scan your vault and replace all existing alias tags with primary tags in one click
- Export / Import — Back up your alias configuration as JSON; restore after reinstalling
Installation
From Obsidian Community Plugins (coming soon)
- Open Settings → Community plugins → Browse
- Search for "Tag Aliases"
- Click Install, then Enable
Manual Installation
- Download
main.js,manifest.json, andstyles.cssfrom the latest release - Create a folder
<vault>/.obsidian/plugins/tag-aliases/ - Copy the downloaded files into this folder
- Restart Obsidian and enable the plugin in Settings → Community plugins
Usage
Setting Up Alias Groups
- Go to Settings → Tag Aliases
- Click Add New Alias Group
- Enter the primary tag (e.g.,
#javascript) and its aliases (e.g.,#js,#JS) - Save
Writing Notes
Just type # followed by any alias — the suggestion popup will show the primary tag with a hint indicating which alias matched. Select it, and the primary tag is inserted.
Migrating Existing Tags
If your vault already has inconsistent tags:
- Go to Settings → Tag Aliases → Batch Migration
- Click Scan & Replace
- Review the preview of changes
- Confirm to apply
Backup & Restore
- Export: Settings → Tag Aliases → Export to save your configuration as JSON
- Import: Settings → Tag Aliases → Import to restore from a previously exported JSON file
Development
npm install # Install dependencies
npm run dev # Development mode (watch & rebuild)
npm run build # Production build
License
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.