obsidian-tagfolder icon indicating copy to clipboard operation
obsidian-tagfolder copied to clipboard

FR: Show only nested Tags

Open emillienemann opened this issue 2 years ago • 3 comments

I think a way to show only nested Tags in a folder structure and not show anything else would be really useful.

Example File rice dish.md #cooking/rice #health/fitness

Current result (Intermediates of nested tags hidden)

cooking
   -> rice
      rice dish
      health
         -> fitness
             rice dish
health
    -> fitness
       rice dish
       cooking
          -> rice
            rice dish

Described Result

cooking
   -> rice
      rice dish
health
   -> fitness
      rice dish

emillienemann avatar Jul 24 '22 15:07 emillienemann

I'd like this way to show the result. Hope to come true.

ryanfys avatar Jul 29 '22 17:07 ryanfys

+1, this would be great - open to contributing if needed, if a maintainer provides their thoughts.

ThatNerdSquared avatar Aug 14 '22 06:08 ThatNerdSquared

Thank you all for your idea and suggestions! Implementation is possible, but the code base is currently a bit flaky.

@ThatNerdSquared Of course I will welcome your contribution!

vrtmrz avatar Aug 16 '22 10:08 vrtmrz

+1, this would be great - open to contributing if needed, if a maintainer provides their thoughts.

@ThatNerdSquared still up for this? Could try myself but I think I'm not capable enough at Obsidian/JS sadly.

emillienemann avatar Feb 17 '23 17:02 emillienemann

@emillienemann unfortunately I won't be able to tackle this in the near future, due to other obligations. I will poke around the codebase and see if I can start on an implementation or write up possible approaches, but I likely won't be able to create any PRs for another month or so.

ThatNerdSquared avatar Feb 19 '23 09:02 ThatNerdSquared

@vrtmrz Putting a bounty of 20 USD one time via GitHub sponsors on this, if it‘s implemented in the next 30 days in case you‘re interested

emillienemann avatar Mar 10 '23 16:03 emillienemann

Sorry for being late in replying! I am a bit worried about the bounty because I cannot always respond to them. But I will try to work on this feature. I felt that it means that it is such a desired feature.

However, may I ask a bit more?

If there are also bare tags, like: #cooking/rice #health/fitness #draft, #draft should be ignored? Or, #draft folder is created at the root but not displayed under #cooking/rice? Does it means "Do not structure unrelated multiple tags"?

vrtmrz avatar Mar 13 '23 01:03 vrtmrz

@vrtmrz No worries if you can’t get to doing this, I understand the bounty amount is more symbolic rather than being a real developer salary. In the case described, bare tags would be shown at root, but not in any folders.

Example Files

File1.txt

#bareTag #bigTag/subtag #otherBareTag

File2.txt

#bareTag #bigTag

Example Output (all intermediates hidden in this case)

bareTag
  File1
  File2
otherBareTag
  File1
bigTag
  subtag
    File1
  File2

This would be similar to the tag system in Bear.

IMG_5193

emillienemann avatar Mar 13 '23 17:03 emillienemann

Thank you for the detail! And, thank you for your kindness! I also think that is symbolic.

It has been implemented as “Disable narrowing down”! It looks handy than I thought. May I ask you to check the behaviour?

vrtmrz avatar Mar 14 '23 11:03 vrtmrz

Thank you for the detail! And, thank you for your kindness! I also think that is symbolic.

It has been implemented as “Disable narrowing down”! It looks handy than I thought. May I ask you to check the behaviour?

Works amazingly! I have sponsored you 20 USD. Thanks for the amazing Open Source work!

emillienemann avatar Mar 14 '23 12:03 emillienemann

I am very glad to hear that. And very much appreciate your support! Your noble kindness would make our plugins even better. Thank you very much again!

vrtmrz avatar Mar 14 '23 13:03 vrtmrz