Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Teach File Properties to recognise Tasks properties #3318

Merged
merged 14 commits into from
Feb 8, 2025

Conversation

claremacrae
Copy link
Collaborator

@claremacrae claremacrae commented Feb 8, 2025

Types of changes

Changes visible to users:

Internal changes:

  • Tests (prefix: test - additions and improvements to unit tests and the smoke tests)

Description

On start-up, the Tasks plugin now automatically adds all known properties and their types to the vault's types.json file.

This means that the File Properties offer auto-completion when adding properties to a file, and know whether they are checkbox or text values.

Thanks to @SkepticMystic for the original code in the Breadcrumbs plugin that gave me the information on how to do this.

Motivation and Context

Make the Query File Defaults facility easier to use.

How has this been tested?

  • Exploratory testing
  • And adding unit tests for the underlying storage of type information.

Checklist

Terms

@claremacrae claremacrae added the scope: frontmatter Anything to do with YAML frontmatter, also known as Obsidian properties label Feb 8, 2025
Copy link

sonarqubecloud bot commented Feb 8, 2025

@claremacrae claremacrae merged commit e305196 into main Feb 8, 2025
4 checks passed
@claremacrae claremacrae deleted the update-types.json branch February 8, 2025 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: frontmatter Anything to do with YAML frontmatter, also known as Obsidian properties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant