YAML Tag Picker is an extension for the Nova editor that allows you to easily select tags for the front matter in your blog posts. It scans your existing posts for tags and presents them in a Choice Palette, making it easy to maintain consistent tagging across your blog. Nice!
You can select multiple tags one after another; when you’re done choose “Finish Selection” or pressing the Esc
key.
Each tag is inserted on a new line, prefixed with a hyphen and a space:
- just
- like
- this
Usage
- Open your blog project in Nova
- Place your cursor at the start of the line where you want to insert tags in your front matter
- Run the
YAML Tag Picker
command from the Command Palette (I map it to keyboardCmd
+Shift
+Enter
) - Choose the tags you want to use from the presented list (repeat)
- When you’re done choose “Finish Selection” or press
Esc
- The selected tags will be inserted at your cursor position
Configuration
To configure global preferences, open Extensions → Extension Library… then select YAML Tag Picker’s Settings tab.
You can customise the following:
- Posts Folder Name
- default:
_posts
- default:
- Tag Prefix Character
- default:
-
- default:
- Skip Tags Containing
- default:
'
- default:
Requirements
- This extension requires access to your filesystem to read your blog posts
- Your blog posts should be in the
_posts
directory (default for Jekyll static site generator) - Tags should be defined in the front matter of your posts using the YAML format
- It can cope with tags specified as an array or as one per-line
Bonus!
There’s also a command to Create YAML Tag Audit document which will open a markdown file containing all tags, so you can do some rationalising or coallescing with search and replace.
Download
Grab it from the Nova Extensions website, or from the Extension Library inside the app.
Originally published: 2024-10-08
--
Enjoyed this blog post? Please show some support.
--
Comments: @gingerbeardman