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

Overview

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)

You might also like...

An Obsidian plugin to paste Excel tables as Markdown tables in Obsidian editor.

An Obsidian plugin to paste Excel tables as Markdown tables in Obsidian editor.

Obsidian Excel to Markdown Table An Obsidian plugin to paste Excel tables as Markdown tables in Obsidian editor. Demo You can paste the copied Excel d

Jan 4, 2023

An Obsidian plugin that lets you browse the web within Obsidian.

An Obsidian plugin that lets you browse the web within Obsidian.

Obsidian Web Browser An Obsidian plugin that allows you to browse the web within Obsidian using v1.0 tabs. The core functionality of the plugin, rende

Dec 28, 2022

Linkify is a JavaScript plugin for finding links in plain-text and converting them to HTML a tags.

Linkify Linkify is a JavaScript plugin. Use Linkify to find links in plain-text and convert them to HTML a tags. It automatically highlights URLs, #

Dec 27, 2022

jQuery tags input plugin based on Twitter Bootstrap.

Bootstrap Tags Input Bootstrap Tags Input is a jQuery plugin providing a Twitter Bootstrap user interface for managing tags. Current stable version: v

Dec 21, 2022

Tag cloud plugin for jQuery, showing bigger tags in the center

Tag cloud plugin for jQuery, showing bigger tags in the center

jquery.tagcloud v1.2.0 Tag cloud plugin for jQuery, showing bigger tags in the center. Usage There are two ways to define a tag cloud: Use ul and li H

Jun 30, 2022

Picky is a jQuery plugin that provides simple client-side date validation when entering dates using select tags.

jquery.picky.js Picky is a jQuery plugin that provides simple client-side date validation when entering dates using select tags. Features Instead of g

Apr 25, 2021

autocomplete/typeahead js plugin for bootstrap v5

bootstrap-5-autocomplete This is a rewrite of https://github.com/Honatas/bootstrap-4-autocomplete for bootstrap v5. Example const ac = new Autocomplet

Dec 28, 2022

jQuery plugin for fuzzy search in autocomplete

fuzzycomplete jQuery plugin for fuzzy search in an autocomplete form, which uses Fuse.js. By harnessing the flexibility Fuse.js, this plugin allows yo

Nov 1, 2021

Obsidian-dataview-table-filter-menu - Dynamically created filter menu for dataview tables in obsidian

Dataview table Filter Menu for Obsidian Dynamically created filter menu for data

Sep 24, 2022
Comments
  • Tag Auto-formatting - Problems

    Tag Auto-formatting - Problems

    First of all this is a great addition!

    I have recently started having some issues with the Tag Auto-formatting option enabled is just messes up all the templates and other text. It would be great if it could just auto-format the tags section and not touch the other parts of the text.

    Example of the problem with version 0.2.0:

    CleanShot 2022-03-10 at 10 22 58

    opened by syepes 0
Releases(0.2.0)
Owner
Eric
Eric
Validate your Markdown frontmatter data against a JSON schema — remark-lint rule plugin

remark-lint-frontmatter-schema Validate Markdown frontmatter YAML against an associated JSON schema with this remark-lint rule plugin. Supports: Types

Julian Cataldo 20 Dec 10, 2022
Tiny JavaScript library (1kB) by CurrencyRate.today, providing simple way and advanced number, money and currency formatting and removes all formatting/cruft and returns the raw float value.

Zero dependency tiny JavaScript library (1kB bytes) by CurrencyRate.today, providing simple way and advanced number, money and currency formatting and removes all formatting/cruft and returns the raw float value.

Yurii De 11 Nov 8, 2022
A string of four operations of the library, can solve the js digital calculation accuracy of scientific notation and formatting problems, support for thousands of decimal point formatting output operations

A string of four operations of the library, can solve the js digital calculation accuracy of scientific notation and formatting problems, support for thousands of decimal point formatting output operations

null 10 Apr 6, 2022
This is a JQuery plugin for input tags with auto complete suggestion.

Jquery Suggestags This is a JQuery plugin for input tags with auto complete suggestion. $('input').amsifySuggestags(); npm installation npm i suggesta

Amsify42 60 Nov 16, 2022
FortBlog adds a nice UI where you can manage a publication of any size with posts, pages, tags, and authors

FortBlog adds a nice UI where you can manage a publication of any size with posts, pages, tags, and authors. You can add photos, code blocks, featured images, social media & SEO attributes, embedded HTML (YouTube Videos, Embedded Podcasts Episodes, Tweets, ...), and markdown! Dark & Light modes available so everyone is happy

Haseeb Ahmad 11 Jan 2, 2023
A Zotero add-on that scans your Markdown reading notes, tags the associated Zotero items, and lets you open notes for the Zotero items in Obsidian.

Zotero Obsidian Citations Adds colored tags to Zotero items that have associated Markdown notes stored in an external folder. Open an associated Markd

Dae 210 Jan 4, 2023
This plugin for Obsidian adds commands for increasing/decreasing the blockquote level of the current line or selection(s).

Blockquote Levels This plugin for Obsidian adds commands for increasing/decreasing the blockquote level of the current line or selection(s). Usage The

Carlo Zottmann 15 Dec 19, 2022
Obsidian jTab adds the ability to show guitar chords and tabs directly in your notes.

Obsidian jTab Guide Obsidian jTab adds the ability to show guitar chords and tabs directly in your notes. It uses the jTab library to render the chord

David 24 Dec 25, 2022
This is a plugin for Obsidian (https://obsidian.md). Can open document with `.html` and `.htm` file extensions.

Obsidian HTML reader Plugin This is a plugin for Obsidian (https://obsidian.md). Can open document with .html and .htm file extensions. Obsidian HTML

null 37 Dec 27, 2022