Open jbusecke opened 1 month ago
Hi thanks for the suggestion. There seems to be a problem with the formatting of text which makes it hard to read.
Could you edit the description and fix it please?
Ah sorry about that, just fixed it. Thanks for the ping.
This feature would open up a bunch of opportunities to interact with other plugins too. Just as an example, one could define a button using meta-bind that modifies a property (to e.g. #personal
#work
) and could then have the task block update dynamically and show only work/personal tasks. One could build an entire task dashboard this way I guess 😁
I had the code for this when working on #2480 and it was buggy.
IIRC The biggest problem was that the query was not updated when I edited the frontmatter in the file containing the query, so I had to close and re-open the query file every time I edited its frontmatter.
So it was clearly not releasable, and I chose to release access to task.file.property
as a first step, and document the limitation in https://publish.obsidian.md/tasks/Getting+Started/Obsidian+Properties#Limitations
I will edit that docs to reference this issue.
I will edit that docs to reference this issue.
Done:
Thanks for the explanation. Curious to see if there might be upstream improvements that fix this eventually.
Thanks for the explanation. Curious to see if there might be upstream improvements that fix this eventually.
No, it is code that needs to be written in Tasks. It is just competing with a lot of other requests, and finite development time.
Ah got it. Either way, just wanted to say again how much I appreciate all the work on this great plugin!
Plus 1 from me! 🙂 This would make templates so much more powerful, s you would just need to modify file properties to change the behaviour. By the way: The Tasks plugin is brilliant! 🤩
I think I really want this too.
My use case is that I have files representing people (who I need to do stuff for) or projects (that are big lists of related tasks) and when looking at either of those files, I want to be able to pick up related tasks by matching anything set as the current file tags.
Currently I've landed on:
tasks
not done
# searchTags needs to be manually updated until https://github.com/obsidian-tasks-group/obsidian-tasks/issues/3083
filter by function \
const searchTags = ['#at-least-one-tag-here']; \
const fileTags = task.file.property('tags'); \
const allTags = task.tags.concat(fileTags); \
return searchTags.find((tag) => allTags.includes(tag)) !== undefined;
but assuming I've fully understood the issue here, I'd like to just populate searchTags
from query.file.property('tags')
if this is implemented.
Edit: I too think the plugin is amazing!
Plus 1 from me!
⚠️ Please check that this feature request hasn't been suggested before.
🔖 Feature description
First of all a huge thanks for maintaining this awesome plugin!
I believe my request is an extension of https://github.com/obsidian-tasks-group/obsidian-tasks/issues/2480 mostly. I would like to be able to access the file properties of the query file exactly like one is able to access them on for tasks. I think this would be particularly useful for workflows involving templates.
✔️ Solution
This already works I can make a template for an index file where I add a task block that will capture tasks whos file property matches a certain value similar to this: