Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for nested tags #614

Closed
huy-vuong opened this issue May 5, 2021 · 3 comments
Closed

Add support for nested tags #614

huy-vuong opened this issue May 5, 2021 · 3 comments
Labels
foam-vscode Foam for VSCode extension in packages/foam-vscode help wanted Extra attention is needed

Comments

@huy-vuong
Copy link

Context

Other note-taking setups like with Bear and Notable have the ability to nest tags such as #ideas/foam to indicate "ideas specifically for Foam".

The nesting is denoted by the / character, like a directory, so this should be able to work in either #hashtag form or in the YAML frontmatter.

This way, it'd be easier to group similar ideas together and instead of just searching for "ideas", you could search for "ideas specifically for Foam" for instance.

The Tag Explorer might look something like this:

  • #️⃣ ideas
    • #️⃣ foam
      • 📝 Add support for nested tags

Current Behaviour

  • In the Tag Explorer:
    • #ideas/foam gets treated as just having the tag #ideas.
    • Adding the tag ideas/foam to the frontmatter gets treated as just having the tag #ideas.

Desired Behaviour

  • In the Tag Explorer:
    • #ideas/foam gets treated as having the tag #ideas.
    • #ideas/foam also gets treated as having the tag #ideas/foam, which is nested inside #ideas.
    • Adding the tag ideas/foam to the frontmatter gets treated as just having the tag #ideas.
    • Adding the tag ideas/foam to the frontmatter also gets treated as just having the tag #ideas/foam, which is nested inside #ideas.
@riccardoferretti riccardoferretti added this to the backlog milestone May 5, 2021
@riccardoferretti
Copy link
Collaborator

I like the idea, happy to provide guidance if someone wants to take it on

@riccardoferretti riccardoferretti added foam-vscode Foam for VSCode extension in packages/foam-vscode help wanted Extra attention is needed labels May 5, 2021
@pderaaij
Copy link
Collaborator

Part of release 0.13.4. Please try it out and leave feedback, if any.

@riccardoferretti riccardoferretti removed this from the backlog milestone May 26, 2021
@riccardoferretti
Copy link
Collaborator

this is now in 0.13.4, so I am closing the ticket. If anything is amiss, feel free to further comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
foam-vscode Foam for VSCode extension in packages/foam-vscode help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants