-
-
Notifications
You must be signed in to change notification settings - Fork 235
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
Apply properties to all tasks in a file via YAML frontmatter #3090
Comments
I do think this is a good idea, and in fact I thought it had been suggested already, but cannot find it. @gffhcks Please help us out by making this more specific. For example, please record what you would suggest the frontmatter properties should be called, for each property you would want to be handled, to start the planning going. |
With the obvious caveat that I have no idea how the code is structured, or whether this would be harder for some properties: I would think that essentially every property (except maybe description or ID) could be exposed for a default. They could inherit their names from the advanced query syntax. Maybe something like this - I assume you'd want the keys to be in a unique namespace to avoid collision with other plugins. ---
obsidian-tasks:
defaults:
created:
start:
scheduled:
priority:
depends_on:
created:
recurs:
on_completion:
... # and so on. I'm still pretty new to Obsidian and haven't actually found an exhaustive list.
--- Honestly I can think of a legitimate use case for basically any task property. Hopefully that helps - if not I'm happy to discuss the idea further. |
Thank you... Ah, that's interesting - Obsidian does not support nested properties: Which means people would not be able to use the handy File Properties editor to change properties. Which would be a shame. So probably we should use non-nested names that were meaningful and did not conflict with obvious existing uses. So simple things like The Breadcrumbs plugin uses these names: Excalidraw uses: |
Yes, that is a good point. |
Wow... Not displaying nested data for a nested data format isn't a limitation I expected... Very good call out though, it's better to support the built-in editor. |
Thank you. I also thought we might want to enable override of some settings on a per-file basis. There may even be a feature request for it. So perhaps this leans us towards something of this sort - format not checked: tasks-settings-add-done-date: false
tasks-default-due-date: 2024-09-30 |
That makes sense to me. Actually, another related enhancement - not sure if it'd be in scope for this change, or if it'd be a separate request - but you could have configuration like this applied at the folder level as well. You could define a specific config file name for folders, maybe a dotfile -
Then if I want to have one set of default behaviors for my |
It's a nice idea, but as you suggest, a long, long way away from this PR. Let's first see when and if this one gets implemented. |
🔖 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:
❓ 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
The text was updated successfully, but these errors were encountered: