Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Obsidian Front Matter Tag Wizard

Tired of having to type # to get tag autocompletion in your Obsidian note front matter? I feel your pain. This plugin enables tag autocompletion in your front matter...and beautifully formats those same tags to boot!

Features

  • Enables unprefixed Tag autocompletion in front matter!
  • Fully supports multiline tags!
  • Optional auto-formatting for tags (default: enabled)!

(back to top)

Getting Started

This plugin has been submitted to Obsidian for review, but in the meantime it can be installed for testing via the BRAT plugin.

  1. Install BRAT
  2. Go to the Obsidian42 - BRAT options tab
  3. Click Add Beta plugin and enter the folling URL:
https://github.com/Tohsig/obsidian-front-matter-tag-wizard
  1. Open the Community Plugins tab
  2. Search for Front Matter Tag Wizard and enable the plugin.

Done! You should immediately get tag autocompletion and autoformatting in the front matter of your notes.

(back to top)

Auto-formatting

The built in auto-formatting is enabled by default and only affects front matter tags. No need to worry about the rest of your content. It will trigger automatically whenever you select an autocomplete suggestion (via enter or mouseclick), or when your cursor leaves the tags: list in your front matter.

When it runs, the auto-formatter will remove duplicate tags and then standardize tag formatting according to these options:

Option Description Default
Enable Auto-formatting Enable/Disable auto-formatting completely enabled
Auto-format Mode Controls whether tags are put on a single line or multiple lines Single Line
Remove Extra Characters Removes # and " characters from your front matter tags enabled

(back to top)

Roadmap

  • Add an option to sort front matter tags alphabetically.
  • Allow autoformatter to edit background notes.
  • Get some saner YAML parsing in here.
  • Add "Format front matter tags" to quick switcher.

(back to top)

Contributing

Feel free to submit issues for bug reports and additional features! This is a project I spun up to support my daily workflow, so I'll be very interested to hear how it does elsewhre.

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Acknowledgments

Huge thanks to the incredible Obsidian Dataview and Obsidian Plugin Developer Docs projects. I was able to learn a ton about Obsidian's API from both, and I highly recommend them if you want to develop a plugin.

(back to top)

About

Obsidian plugin that adds autocomplete and auto-formatting to frontmatter tags.

Resources

License

Stars

Watchers

Forks

Packages

No packages published