blakedietz/vscode-nested-tags

Feature request: List files at each level of nested tag tree

Opened this issue · 1 comments

Background

One of the main advantages of nested tags is that you can group related files together as long as they have tags that share a common ancestor. Take the following tag tree as an example:

food/
├── fruit/
│   ├── banana.md
│   ├── apple.md
└── vegetable/
    ├── potato.md
    └── celery.md
beverage/
├── juice/
...

In this case, banana.md and apple.md have the tag food/fruit, and potato.md and celery.md have the tag food/vegetable. So, if I want to see all notes related to food, I should be able to filter by the food tag and see all four notes. Basically, I'm asserting that if banana.md is a food/fruit, it is also a food. Currently, it doesn't appear possible to do this in the extension since the tag tree only lists files at the tips of the tree branches.

Implementation

I don't think it would make sense to clutter up the tag tree display with a list of files at every level of the tree. But, what would be nice is if selecting a tag in the tag tree would filter the file list for only file containing the selected tag (or a branch of the selected tag). Alternatively, if it's not possible or is too messy to manipulate the existing file list in VS Code, you could introduce another panel above/below the tag tree that lists the filtered files.

Ooh, I like this idea. I haven't been actively developing in a while, but maybe I'll make some time in the next couple of weeks. Thanks for the detailed write up!