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

[Feature Request] prepend tags with a specified string. #111

Open
Jarartur opened this issue Apr 24, 2023 · 1 comment
Open

[Feature Request] prepend tags with a specified string. #111

Jarartur opened this issue Apr 24, 2023 · 1 comment

Comments

@Jarartur
Copy link

Hi and thank you for this plugin :).

I use nested tags to differentiate between tags from different integrations. I wanted to prepend every tag from pocket with 'pocket/'.

I did it for example in the obsidian-citations with {{#each entry.data.fields.keywords}}{{#if @last}}zotero/{{this}}{{else}}zotero/{{this}}, {{/if}}{{/each}} for zotero integration.

I wanted to use templater here but can't figure it out (probably can be done with executing JavaScript I think). It also would solve #82

@Jarartur
Copy link
Author

For anybody else searching for this, I made it using templater like that:

---
Title: "{{title}}"
URL: {{url}}
Pocket URL: {{pocket-url}}
Pocket tags: {{tags-no-hash}}
---
tags: #pocket/<% await tp.frontmatter["Pocket tags"].replaceAll(', ', (', #pocket/'))%>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant