Allow filtering by arbitrary values in note frontmatter #717
Replies: 6 comments 12 replies
-
The obsidian code must contain a YAML parser that is uses to process the front matter. If this is accessible to plugin developers, you could make the parse tree representation of the front matter for available for filter queries. This would be sort of like how the dataviewjs plugin allows queries using the hierarchical parts of the page, file, and task collections. Here are some examples of how Tasks querues might look like if Overdue tasks from kanban notes (boards):
Exclude tasks from basic kanban boards:
This idea is similar to how the program |
Beta Was this translation helpful? Give feedback.
-
I appreciate the value of this feature. However, the Tasks code will need quite a lot of refactoring before this feature could be added in a sustainable and maintainable way. In the meantime, I wrote up a workaround that can be used right now, to find notes tasks in notes with particular tags: |
Beta Was this translation helpful? Give feedback.
-
Another request - in Reddit Let's assume i have a specific project note called 'learn scraping' which has the frontmatter data
Then in the 'coding' note i want to queue all tasks from notes with the frontmatter data area = 'coding' |
Beta Was this translation helpful? Give feedback.
-
This would of course also include making the frontmatter accessible to custom filters and groups. Requested in #2145 |
Beta Was this translation helpful? Give feedback.
-
To add another use case to this issue: I'm using the Projects plugin for project/task management. I want to build a query in Tasks that pulls in the open actions from Projects with a particular status. The Projects plugin uses frontmatter for all properties, which are completely customizable. So I want to be able to plan tasks into a project that is not Active yet (and thus the tasks do not appear in my query), but then 'activate' the project in Projects (via changing a frontmatter property), so that all its tasks will appear in my query. I can do this in dataview via the code below, but I'd rather utilize Tasks' ability to keep the link to the project note inline with the task description.
|
Beta Was this translation helpful? Give feedback.
-
This has just been released in Tasks 7.7.0. For details and examples, see the Obsidian Properties documentation page. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Motivation
From #716, provide a way to either omit tasks from kanban boards or only contain tasks from kanban boards, and then apply other Task plugin query criteria.
But instead of making a query specifically for
kanban-plugin
values, let's make something that is more general, to filter in or out any frontmatter values.Ideas
Perhaps something simple like this, which would match any key or value in the front matter:
frontmatter (includes|does not include) <some text in a key>
frontmatter (includes|does not include) <some text in a value>
Or should it also searches to distinguish between keys and values?
frontmatter <key> (includes|does not include) <some text in a value for that key>
Related
We have a couple of requests to be able to search the tags from YAML frontmatter:
Beta Was this translation helpful? Give feedback.
All reactions