Skip to content

Apply (default) properties to all tasks in a file via YAML frontmatter #3090

Open
@gffhcks

Description

⚠️ Please check that this feature request hasn't been suggested before.

  • I searched previous Ideas in Discussions didn't find any similar feature requests.
  • I searched previous Issues didn't find any similar feature requests.
  • I am only requesting a single feature. Multiple changes should be split into individual requests, with links between them.
  • I believe my requested feature will be generally applicable to other users, not just me: it is not uniquely tied to my personal workflow.

🔖 Feature description

I want to be able to set 'default' values for task properties, for all tasks within a specific file.

Say I'm planning a party. I have a hard due date (the party itself) for all of the tasks, but most of the individual tasks don't have specific timeline requirements. I'd like to set the due date for them in one place, and be able to change it in one place if needed.

Or maybe I have a file full of recurring daily tasks. Instead of setting them to delete on completion individually, I could just set it for the entire file.

YAML frontmatter seems ideal for this.

✔️ Solution

I imagine it working something like this:

  1. If a task property is defined in the YAML frontmatter, queries treat it as the default value for that property, for any task in the file.
  2. An explicit value set on the task itself overrides the file's default.

❓ Alternatives

A 'bulk edit' feature would be a decent alternative - i.e., select a group of tasks, and apply a property to all of them at once. This is a slightly different use case, though - and honestly, I'd prefer to see both features implemented.

📝 Additional Context

No response

Metadata

Assignees

No one assigned

    Labels

    scope: frontmatterAnything to do with YAML frontmatter, also known as Obsidian propertiesscope: parsing markdownSee also 'scope: global filter'type: enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions