VSNotes icon indicating copy to clipboard operation
VSNotes copied to clipboard

Feature request: Sub-Tags

Open PhilipWhiteside opened this issue 6 years ago • 7 comments

Tags currently appear flat

  • Foo
  • Bar
  • Lemon
  • Pie

Would like to be able to make sub tags like so

  • Foo/Apple
  • Foo/Orange

And have these appear in the side panel as

  • Foo
    • Apple
    • Orange

Here is a little mock-up I did which relates to #11 too, though both #11 and #10 are independant requests.

vsc_002

PhilipWhiteside avatar Mar 30 '18 06:03 PhilipWhiteside

I like the idea of sub tags but I think that instead of using a slash delimiter between subtags, we can go with something more YAML semantic and a bit more recursive. How about this:

----
tags: 
    - tag 1
    - tag 2
    - papa tag: 
        - subtag 1
        - subtag 2
        - subtag 3: 
            - subsubtag1
            - subsubtag2 
----

patleeman avatar Apr 06 '18 12:04 patleeman

That looks good :-) Either way it's good. Don't know if it's possible to suggest tags, to speed up the building of perhaps longer trees (probably a different feature focus).

PhilipWhiteside avatar Apr 06 '18 16:04 PhilipWhiteside

I have tried to take a look at the code on how to do this, but I'm not a JS/VSCode developer, or developer by trade at all. So got entirely lost. If you're able to point me at the appropriate places/things I can give it another go. I have many many tags, and lack of being able to close them gets in the way of navigating them.

PhilipWhiteside avatar Jan 17 '19 09:01 PhilipWhiteside

Any updates on this? Sub-tags would be awesome!

xeor avatar Oct 24 '19 19:10 xeor

a great idea!!! I like subtags!

XinyuWuu avatar Apr 19 '20 13:04 XinyuWuu

Subtags would be cool, but I would recommend using / to delimit them for the sake of:

  1. Compatability with Notable
  2. Simplicity of working with them
    • (e.g. there are already a couple of scripts [here])(https://github.com/notable/notable-customizations)
  3. Compatability with WikiJS which expects tags to be flat and comma seperated.
    • This wouldn't be compatability in the sense of parity but in the sense of non-breaking cohabitation.

RyanGreenup avatar Jun 24 '20 00:06 RyanGreenup

I started using VSNotes recently, and I want this feature too. So I tried to implement it (https://github.com/kndysfm/VSNotes-1/commit/64910f03424bf7df43a2990ea6a4ef3fde5837a4) image I defined parameter vsnotes.tagSplitter, and I like to use '.' fot it.

kndysfm avatar Dec 08 '20 00:12 kndysfm