Ishibashi Auto Tagger manages Obsidian frontmatter tags from note folder paths.
It is designed for folder-first vaults where moving a note should refresh only the tags inferred from its folder while preserving manually added tags.
Features
- Add folder-derived tags to new Markdown notes.
- Refresh folder-derived tags when notes are moved or renamed.
- Keep manually added tags when folder tags are updated.
- Add an archive tag for notes under a configured archive folder.
- Exclude template or system folders from automatic tagging.
- Ignore year folders such as
2026.
- Remove numeric ordering prefixes such as
4_ or 03-4_ from generated tags.
- Add custom tag names only for exceptions that automatic cleanup cannot infer well.
- Choose exception rules from existing vault folder names instead of typing everything by hand.
- Preview generated tags before applying rules to real notes.
- Save settings explicitly, with a visible unsaved state and an undo action.
- Review and repair duplicate tags created by older numeric-prefix rules before changing notes.
- Switch the settings UI and notices between English and Japanese.
- Run tagging or cleanup commands for the current note, current folder, or the whole vault.
Usage
Enable the plugin and configure folder rules from Obsidian settings.
The default behavior is:
- New notes receive tags inferred from their folder path.
- Moved notes receive tags inferred from the new folder path.
- Tags inferred from the previous folder are removed when replacement is enabled.
- Tags that were manually added by you or another plugin are kept.
Use the tag preview in settings to test a path such as:
03_Work/03-4_Project notes/Reference.md
Settings
- Language: Choose English or Japanese for settings and notices.
- Enable automatic tagging: Turn event-based tagging on or off.
- Tag new notes: Add tags when a Markdown file is created.
- Tag moved or renamed notes: Refresh tags when a Markdown file moves or is renamed.
- Replace old folder tags on move: Remove tags inferred from the previous folder while preserving manual tags.
- Archive folder: Top-level folder that receives the archive tag instead of normal folder tags.
- Archive tag: Tag added to notes under the archive folder.
- Ignore year folders: Skip folders such as
2026.
- Remove numeric ordering prefixes: Treat
number_title as the standard format. For example, 4_Project notes and 03-4_Project notes both generate Project-notes.
- Tag preview: Check generated tags for a sample note path.
- Excluded folders: Folders and descendants that should not be tagged.
- Custom tag names: Optional exception rules. Most folder names are handled by automatic cleanup, such as removing numeric prefixes.
Commands
- Add automatic tags to the current note
- Add automatic tags to notes in the current folder
- Add automatic tags to all notes
- Remove automatic tags from the current note
- Remove automatic tags from notes in the current folder
- Remove automatic tags from all notes
- Review and repair legacy folder tags
Compatibility
This plugin updates the tags frontmatter field.
It does not overwrite note bodies, file names, aliases, or unrelated frontmatter fields.
When a manually added tag has exactly the same value as a tag inferred from the previous folder, the plugin cannot distinguish their origin and treats it as folder-derived during replacement.
If you also use a web clipper or another note creation plugin, let that plugin add its own initial tags and use Ishibashi Auto Tagger for folder-derived tags.
Ishibashi Auto Tagger 日本語ガイド
Ishibashi Auto Tagger は、Obsidianのフォルダパスからfrontmatterの tags を管理するプラグインです。
フォルダで整理するVaultで、ノート移動時にフォルダ由来タグだけを更新し、手動で付けたタグは残すことを重視しています。
主な機能
- 新規Markdownノートにフォルダ由来タグを追加
- ノートの移動・リネーム時にフォルダ由来タグを更新
- フォルダタグ更新時も手動タグを保持
- アーカイブフォルダ配下ではアーカイブタグを追加
- テンプレートやシステム用フォルダを自動タグ付けから除外
2026 のような年フォルダをタグ化しない設定
4_ や 03-4_ のような並び順を示す数字接頭辞をタグから除去
- 自動変換では合わない例外だけ、カスタムタグ名として設定
- 既存フォルダ名から候補を選び、手入力の負担を削減
- 実ノートへ適用する前にタグ生成結果をプレビュー
- 未保存状態を確認し、保存ボタンで設定変更を確定
- 旧ルールで生じた重複タグを、変更前の確認画面から修復
- 設定画面と通知を日本語/英語で切り替え
- 現在のノート、現在のフォルダ、Vault全体へのタグ付け/削除を手動実行
使い方
プラグインを有効化し、Obsidian設定からフォルダルールを調整します。
標準の動作:
- 新規ノートにはフォルダパスから推定したタグを付けます。
- 移動したノートには移動先フォルダから推定したタグを付けます。
- 置き換え設定が有効な場合、移動前フォルダから推定したタグだけを削除します。
- 手動で追加したタグや他プラグイン由来のタグは残します。
設定画面のタグ生成プレビューでは、次のような一般的なパスで結果を確認できます。
03_Work/03-4_Project notes/Reference.md
設定項目
- 言語: 設定画面と通知の表示言語を選びます。
- 自動タグ付けを有効にする: イベントによる自動実行をオン/オフします。
- 新規ノート作成時にタグ付け: Markdownファイル作成時にタグを付けます。
- 移動・リネーム時にタグ付け: Markdownファイルの移動・リネーム時にタグを更新します。
- 移動時に旧フォルダ由来タグを置き換える: 手動タグを残し、移動前フォルダ由来タグだけを削除します。
- アーカイブフォルダ: 通常フォルダタグではなくアーカイブタグを付けるトップレベルフォルダです。
- アーカイブタグ: アーカイブフォルダ配下のノートへ追加するタグです。
- 年フォルダをタグ化しない:
2026 のような年フォルダをスキップします。
- 並び順を示す数字の接頭辞を除去:
数字_タイトル を基本形式とし、4_プロジェクト資料 と 03-4_プロジェクト資料 はどちらも プロジェクト資料 タグになります。
- タグ生成プレビュー: サンプルパスから生成されるタグを確認します。
- 除外フォルダ: 自動タグ付けしないフォルダと配下を指定します。
- カスタムタグ名: 例外用の任意ルールです。多くのフォルダ名は、数字接頭辞の除去などの自動整形だけで処理されます。
設定変更は画面下部の「変更を保存」を押した時点で反映されます。未保存のまま設定画面を閉じた場合、変更は破棄されます。
手動タグが移動前フォルダから生成されるタグと完全に同名の場合、由来を区別できないため、移動時にはフォルダ由来タグとして扱われます。
Release Files
Community plugin releases should include:
main.js
manifest.json
styles.css
Do not include data.json, local vault settings, or generated caches in release assets.
Development
npm install
npm run check
npm run release:zip
The source file is src/main.ts. The generated Obsidian entry file is main.js.