patleeman / VSNotes

Simple VS Code extension for plain text note taking.
https://marketplace.visualstudio.com/items?itemName=patricklee.vsnotes
MIT License
174 stars 34 forks source link

Feature request: Sub-Tags #10

Open PhilipWhiteside opened 6 years ago

PhilipWhiteside commented 6 years ago

Tags currently appear flat

Would like to be able to make sub tags like so

And have these appear in the side panel as

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

vsc_002

patleeman commented 6 years ago

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 
----
PhilipWhiteside commented 6 years ago

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 commented 5 years ago

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.

xeor commented 4 years ago

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

XinyuWuu commented 4 years ago

a great idea!!! I like subtags!

RyanGreenup commented 4 years ago

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
  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.
kndysfm commented 3 years ago

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.