New {{Variable}}
-> {{tags}}
#50
Replies: 3 comments 3 replies
-
An excellent idea! 🙂
Makes sense. I haven't yet used Obsidian's API to get tags, so I don't know how it works, but I'd guess the API can already give a list of tags without duplicates. Nevertheless, duplicates can be removed even if the API would not do it for some reason. In some database languages (such as SQL languages), a term distinctive is used for getting results without duplicates. The definition for this variables would be: Have a nice day, too! 🙂 |
Beta Was this translation helpful? Give feedback.
-
Should be. (That's something a programmer should never say. Things that should be easy tend to extend their amount of work from what was expected 😲 ). Thanks, have a nice day too! 🙂 |
Beta Was this translation helpful? Give feedback.
-
It's funny how theory is different from practice: We always have to deal with the unexpected :smiley That's why you guys are so important to our world. You have te knowledge to transform an idea a thought into a tool/product/asset that can change people (like me) lives :) That's your superpower :) Have a great day @Taitava ! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello @Taitava !!!!
As we talk before about this plugin Cross-Reference, I'm starting using tags and I think a have a new idea for a variable
{{tags}}
from the current/active note :)My workflow
When I'm writing I start to type tags in the middle (inside) of the text to not lose momentum when I'm focus.
My text would look like this. I know, its a mess :(

My idea is to gahter all tags from a note and transfer to an specific heading in the same note (maybe in the end)
echo {{tags}} >> "/{{file_path:absolute}}"
orprintf {{tags}} | pbcopy
( I don't know yet)Then I use Regex to delete the tags in the text to clean the mess.
One Special Request 🙏
When dealing with long texts, it's commom that I write many times the same tag, generating more than one record of the same tag in the some.
Using
{{tags}}
as a list of tags from a note, I'd like to ask for deleting duplicates records of tags. (one record for each tag)Example: this note has the following 4 tags:
#amor
#ação
#medo
#medo
For the
{{tags}}
is was thinking about this result:#amor
#ação
#medo
I hope you like this new variable
I wish you a fantastic Monday!
Beta Was this translation helpful? Give feedback.
All reactions