Enhance your note-taking experience in Obsidian by associating YAML tags with folders. TagIt allows you to automatically manage tags for files based on their folder location, providing better organization and streamlined workflows.
-
Folder Tagging: Associate YAML tags with folders to automatically apply them to files within.
-
Automatic Tag Application: New files inherit tags from their parent folder.
-
Tag Inheritance Customization: Choose how tags are inherited in nested folders.
- None: No tag inheritance.
- Immediate: Inherit tags from the immediate parent folder.
- All: Inherit tags from all parent folders.
-
Visual Indicators: Display icons next to folders with tags for easy identification.
-
Inline Tag Conversion: Convert inline tags within notes to YAML front matter tags.
-
Bulk Tag Application: Apply folder tags to all existing notes within a folder.
-
File Movement Handling: Manage tags when moving files between folders with different tags.
-
Obsidian Tag Pane Integration: Folder tags appear in Obsidian's native tag pane.
-
Advanced Settings: Customize plugin behavior through a dedicated settings tab.
-
Performance Optimizations: Efficiently handle large vaults with minimal impact on performance.
-
Theme Compatibility: Plugin UI adapts to both light and dark themes.
-
Checklist Tagging and Urgency Management:
- Tag Individual or Multiple Items:
- Select one or more checklist items in your note
- Right-click and select "Apply Tag"
- Enter a tag and choose an urgency level:
- ⚪️ Default (no urgency)
- 🟢 Low
- 🟡 Moderate
- 🟠 Important
- 🔴 Critical
- Tags and urgency indicators are added to the selected items
- Tag Individual or Multiple Items:
-
Change Urgency Levels:
- Right-click on checklist items and select "Change Urgency"
- Choose from five urgency levels in a visual modal
- Use command palette for quick urgency changes:
- "Set checklist urgency to [level]" commands
- "Change urgency of checklist items" for modal view
Example:
- Download the latest release from the Releases page.
- Extract the contents of the zip file.
- Copy
main.js,manifest.json, andstyles.cssinto a new folder namedTagITin your vault's.obsidian/pluginsdirectory. - Open Obsidian and navigate to Settings > Community plugins.
- Enable TagIt in the Installed plugins list.
-
Right-Click Method:
- Right-click on a folder in the file explorer.
- Select Add/Edit Folder Tags.
- Enter tags (comma-separated) in the modal that appears.
- Click Save to apply the tags to the folder.
-
Command Palette:
- Open the command palette with
Ctrl+P(orCmd+Pon Mac). - Search for Add/Edit tags for current folder.
- Enter tags in the modal and save.
- Open the command palette with
Configure how tags are inherited in nested folders via Settings > TagIt:
- None: Only apply tags set directly on the folder.
- Immediate: Inherit tags from the immediate parent folder.
- All: Inherit tags from all parent folders, recursively.
When moving files between folders with different tags, a modal appears with options:
- Replace All: Replace all existing tags with the new folder's tags.
- Merge: Keep existing tags and add the new folder's tags.
- No Action: Keep tags as they are.
- Right-click on a folder.
- Select Apply Folder Tags to Notes.
- The folder's tags will be merged with existing tags on all notes within the folder.
-
Single Note Conversion:
- Right-click on a note
- Select Convert Inline Tags to YAML
- Inline tags (
#tag) within the note will be moved to the YAML front matter
-
Batch Folder Conversion:
- Right-click on a folder
- Select Convert All Notes to YAML
- Choose from two options:
- Convert All: Process all notes in the selected folder and its subfolders
- Convert Folder Only: Process only notes in the selected folder
- A summary will display after conversion showing successful and failed conversions
-
Tag Individual or Multiple Items:
- Select one or more checklist items in your note
- Right-click and select "Apply Tag"
- Enter a tag and choose an urgency level:
- ⚪️ Default (no urgency)
- 🟢 Low
- 🟡 Moderate
- 🟠 Important
- 🔴 Critical
- Tags and urgency indicators are added to the selected items
-
Change Urgency Levels:
- Right-click on checklist items and select "Change Urgency"
- Choose from five urgency levels in a visual modal
- Use command palette for quick urgency changes:
- "Set checklist urgency to [level]" commands
- "Change urgency of checklist items" for modal view
Example:
Access plugin settings via Settings > TagIt:
- Tag Inheritance Mode: Choose tag inheritance behavior.
- Excluded Folders: Specify folders to exclude from tag inheritance.
- Show Folder Icons: Toggle the display of icons next to tagged folders.
- Auto-apply Tags: Automatically apply folder tags to new files.
- Debug Mode: Enable detailed logging for troubleshooting.
- Obsidian Version: Tested with Obsidian v0.15.0 and above.
- Operating Systems: Compatible with Windows, macOS, and Linux.
- Themes: Supports both light and dark themes.
Contributions are welcome! Here's how you can help:
- Fork the Repository: Click the Fork button at the top right of this page.
- Clone Your Fork:
git clone https://github.com/JRStriestocode/TagIT.git - Create a Branch:
git checkout -b feature/my-feature - Make Changes: Implement your feature or bug fix.
- Commit Changes:
git commit -am 'Add new feature' - Push to Branch:
git push origin feature/my-feature - Open a Pull Request: Submit your changes for review.
Please ensure your code adheres to the project's coding conventions and passes all tests.
This project is licensed under the MIT License - see the LICENSE file for details.
- Obsidian Community for their support and inspiration.
- Obsidian Plugin API for providing the tools to develop this plugin.
- Icons made by Feather Icons licensed under the MIT License.
