Repository navigation
obsidian-bases: fix the YAML quoting rule, list arithmetic operators and random() - #174
Open
luchasarie wants to merge 1 commit into
Open
luchasarie wants to merge 1 commit into
luchasarie wants to merge 1 commit into
Conversation
…ors and random()
The Troubleshooting section says strings containing any of `: { } [ ] , & * # ? | - < > = % @ ` !` "must be quoted". Most of those are fine in the middle of a plain value. A YAML 1.2 parser (`yaml`) and a YAML 1.1 parser (`js-yaml`) both read `Q&A`, `50%`, `x,y`, `a=b`, `Status-Active` and `a|b` as plain strings. What breaks is `: ` or a trailing `:`, ` #`, a leading `- ` or `? `, and a leading `[ ] { } , & * # | > ' " % @ ` !`. State that rule, and keep "when in doubt, quote".
Two things the Bases docs list that the skill leaves out:
- The arithmetic operators `+ - * / %` and `( )`. The "Filter Operators" table only had comparison and boolean operators, though the formula examples use arithmetic. Rename it to "Operators".
- The global `random()` function, missing from FUNCTIONS_REFERENCE.md.
Source: obsidianmd/obsidian-help, en/Bases/Bases syntax.md ("Arithmetic operators") and en/Bases/Functions.md (`random()`).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
Three small accuracy fixes in the obsidian-bases skill, checked against the Bases docs.
: { } [ ] , & * # ? | - < > = % @(plus backtick and!) "must be quoted".yaml(1.2) andjs-yaml(1.1) both readQ&A,50%,x,y,a=bandStatus-Activeas plain strings. What breaks is:or a trailing:,#, a leading-or?, and a leading indicator character. The rule now says that and keeps "when in doubt, quote". Covers item 2 of Docs suggestions: data-trust note for CLI/Headless, YAML quoting wording, CLI failure example, knap overwrite policy #171. Not tested against Obsidian's own YAML parser.+ - * / %and( )and renamed it "Operators", since the formula examples already use arithmetic.random()added to FUNCTIONS_REFERENCE.md.Source for 2 and 3: obsidianmd/obsidian-help,
en/Bases/Bases syntax.mdanden/Bases/Functions.md.claude plugin validate . --strictpasses.🤖 Generated with Claude Code