delashum / obsidian-checklist-plugin

MIT License
376 stars 39 forks source link

Improve support for multi-level nested tags #114

Open montemartin opened 2 years ago

montemartin commented 2 years ago

Being able to toggle between multiple tags in the latest update is great. However the current behavior of nested tags seems a little bit limited. There are two changes that I think would make the plugin a lot more useful.

The first thing is to allow nested tags in the plugin settings. For example I use a nested tag structure for due dates - #due/2022/01/15 for something due on Jan 15th. Right now if I use due as one of my tags it shows every task with a due date. I'd really like to be able to filter to only tasks due this month using due/2020/01 in the plugin settings. Right now a nested structure returns nothing, even if the top level tag is present.

The second is an addition to that. I'd like the plugin to surface nested tags as if they were top level. Consider the following tag structure:

#due/2022/01/22
#review/2022/01/18
#tickler/2022/01/14

A search for the tag 2022/01 would show tasks from the whole month, whether they are nested beneath due, review, or tickler.

There are several other use cases where both these features would be useful. Let know what you think. I'm willing to help if you have a general idea of how to make it happen.

michaelzemba commented 6 months ago

I second this...! I just started using the Checklist plugin and I'm thrilled with it, but I organize most of my tags into nested tags and was disappointed to find that it apparently breaks the functionality of the checklist pane.

The most pressing issue seems to be that nested tags do not return results at all. For example, #to-do/urgent. I can query the top level #to-do and see #to-do/urgent results along with everything else, but there is no way to query the nested tag on its own.

If I abandoned nested tags altogether and tagged #to-do and #urgent separately, it seems like I could still only query #to-do OR #urgent from the Checklist pane when what I really want to see is #to-do AND #urgent. So, I think nested tags add significant capability and aren't just for personal preference/organization.

Querying partial tags like mentioned above with the 2022/01 example would be a bonus!

graphicagenda commented 1 month ago

+1, watching. I wasn't able to get #note/todo to pull up any results. I had to revert to #note in order for this plugin to work.