Repository navigation
Strip YAML quotes from frontmatter tags - #343
Merged
gamosoft merged 1 commit intoNov 14, 2026
Merged
Conversation
tags: ["meeting"] and tags: [meeting] were two different tags, so the quoted one was missing from the tag filter. YAML needs quotes for values like "2026", and many tools write them anyway. Drop one pair of matching quotes from each tag, in the backend parser and in the frontend copy used right after a save.
Owner
|
Nice, thanks again @jayhemnani9910 !!! 🙏 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Quoted tag values keep their quotes, so the same tag shows up twice and the tag filter misses notes:
GET /api/tagsgave{"\"meeting\"": 1, "\"project-x\"": 1, "meeting": 1}andGET /api/tags/meetingreturned only Standup. YAML needs quotes for values like"2026"and many tools write them for every value, so this is common when bringing in an existing vault.parse_tagsnow drops one pair of matching"or'from each tag, in the inline list, single value and block list forms, and so doesparseTagsFromContentinfrontend/app.js, which sets a note's tags right after it is created or saved. With the change the same two notes give{"meeting": 2, "project-x": 1}, and the meeting filter returns both.Tested by running the server locally with a fresh notes folder, creating the two notes through the API and reading the tags back, before and after, plus
parse_tagson block lists and a single quoted value (tags: 'work'->work).