-
Notifications
You must be signed in to change notification settings - Fork 650
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 basic tag support #302
Comments
I was led here by the necessity to move from categories to tags in my work (inspired by Zettelkasten). # Super Awesome Title
---
@tags: t1, t2, t3
---
Note description We can prepend the The metadata symbol could also be configured in Personally, I hate YAML, it's whitespace rules are awkward and hard to debug. I also believe that since Foam already makes plenty use of JSON, we should keep everything in the same format, in the name of simplicity. |
I think YAML front-matter is the best place to keep all metadata (including tags) about a note. But using
Other than that, it would also be great if the tags in YAML front-matter had auto-complete functionality. |
thx for the info @canpolat! I didn't know about that, will review the YAML docs and give an update about the specs for this PR |
this is addressed by #311 |
tags don't seem to be working for me Have the foam template workspace running with recommended extensions
throwing down Code OSS 1.51.1 |
Are you writing #tag or just tag?
A quinta, 26 de nov de 2020, 04:07, digitalsignalperson <
[email protected]> escreveu:
… tags don't seem to be working for me
Have the foam template workspace running with recommended extensions
- foam for vscode
- markdown all in one
- markdown links
- markdown notes
throwing down #various tags #allovertheplace and the "tag explorer" stays
empty. Same with yaml. Any suggestions?
Code OSS 1.51.1
Linux x64
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#302 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADVCBSYU6LKAJB4EHQYZ3CTSRXIB5ANCNFSM4TCNNAXA>
.
|
To appear in the tag explorer you need to write the tags in the MD frontmatter |
hmm the PR said
so I imagined defining tags by #tag would also appear in the panel (at least that's the behavior I'd like; similar behaviour in e.g. Obsidian) I'm on v0.6.0 and code says all extensions up to date. Caveat this is linux with Code OSS so it's looking at https://open-vsx.org/extension/foam/foam-vscode |
You're right (reopening the issue) @riccardoferretti do you have insights on the problem? |
I have actually experienced this locally for the first time yesterday. |
I tweaked the parsing code, this fixed it on my machine tbh, I am still a bit baffled as to why the tests were passing before, but what I have there is the right way to deal with the iterator in any case |
I'd be down to test. Any links on how to build/test a vscode extension from github? My googling not helping |
Check the docs/contribution-guide.md if you have questions let me know as
we want to improve the guide.
If you are not on the Foam discord you can follow the link in the top of
the readme. In the discord you can place your questions in #foam-vscode
A sexta, 27 de nov de 2020, 03:08, digitalsignalperson <
[email protected]> escreveu:
… I'd be down to test. Any links on how to build/test a vscode extension
from github? My googling not helping
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#302 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADVCBS73O7PQC5SOFOYUYKLSR4J4JANCNFSM4TCNNAXA>
.
|
Add support for tags in the foam workspace.
Each note would be able to define tags in 2 ways:
tags
property in YAMLtags: tag1, tag2
tags: tag1 tag2
tags: #tag1 tag2
tags: [tag1, #tag2]
#tag
anywhere in the file#tag
The text was updated successfully, but these errors were encountered: