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 {{date}} and/or {{time}} support in Pocket item note template #67

Open
rcrcr-omni opened this issue Jan 6, 2022 · 6 comments
Open
Labels
enhancement New feature or request

Comments

@rcrcr-omni
Copy link

When using {{date}} in the Pocket note template, it doesn't behave in the same way an Obsidian template does. It just prints {{date}}.

I'd like to be able to auto-populate the date I'm retrieving the article (i.e. today).

@nybbles
Copy link
Owner

nybbles commented Jan 6, 2022

Yes, this Pocket plugin doesn't work the same way as the Template core plugin. Neither {{date}} nor {{time}} are listed in the docs.

What would {{date}} mean in this context? Two possible interpretations in this context of this plugin are:

  1. The date that the Pocket item note was created.
  2. The date that the Pocket item was saved to Pocket.

@nybbles nybbles changed the title Bug? Date template tags don't work Add {{date}} and/or {{time}} support in Pocket item note template Jan 6, 2022
@nybbles nybbles added the enhancement New feature or request label Jan 6, 2022
@rcrcr-omni
Copy link
Author

There might be a third useful one: the date the article was written. But I don't think Pocket captures that. I certainly can't see it in the API docs.

Then again I can't see the date that the Pocket item was saved to Pocket either but it's definitely there because it shows up on Zapier.

@nybbles
Copy link
Owner

nybbles commented Jan 6, 2022 via email

@masonfocus
Copy link

masonfocus commented Aug 25, 2022

Would love to see the date feature improved. The date the article pocketed or archived or edited can be used to filter articles to analyse the articles read last week or between March and July.

As the date the item saved to pocket is saved in the table it seems like these values are retrieved:

image

but adding

Dates Added: {{time_added}}
Last Edited: {{time_updated}}

to the YAML template won't work as they are not defined.

Is there a current workaround or we have to wait for the update?

As a matter of fact, I would like use nearly all the other attributes retrieved from pocket, for example word cont and time_favorited
time_read
time_to_read

all good dimension for future analysis.

Is that possible?

@ygol
Copy link

ygol commented Oct 26, 2022

I use <% tp.date.now("YYYY-MM-DD dddd") %> in the template

@baseliners
Copy link

Would love to see the date feature improved. The date the article pocketed or archived or edited can be used to filter articles to analyse the articles read last week or between March and July.

+1, this would be great to see!

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

No branches or pull requests

5 participants