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 Todoist Task for links #26

Open
topwebs opened this issue Feb 11, 2022 · 3 comments
Open

Add Todoist Task for links #26

topwebs opened this issue Feb 11, 2022 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@topwebs
Copy link

topwebs commented Feb 11, 2022

Would be nice if tasks were created for links to files.

@wbthomason
Copy link
Owner

I'd be happy to merge a PR for this, but I probably won't have the time to implement it myself. It would probably mostly be a change to this conditional https://github.com/wbthomason/zotodo/blob/master/content/zotodo.ts#L462, but I'd need to figure out the right values for links.

@wbthomason wbthomason added enhancement New feature or request help wanted Extra attention is needed labels Mar 29, 2022
@phguo
Copy link

phguo commented Mar 30, 2022

@topwebs Without modify the source code, you can replace the default set of "Javascript template string for new tasks"

Read "?${url}:[${title}](${url})?!${url}:${title}!"

with:

Read "?${select_uri}:[${title}](${select_uri})?!${select_uri}:${title}!"

This directs you to the Zotero item.

@tophee
Copy link

tophee commented Jun 27, 2022

Thank you so much for this alternative template! (I think it should be the default template)

And although I don't know any javascript, I even managed to further amend it to include the authors. It took my a while to figure it out, though, so here it is for anyone who wants to include the author in the todoist task:

Read "?${select_uri}:[${title}](${select_uri})?!${select_uri}:${title}!" ?${authors}:by ${authors}?

It seems to work for me, but feel free to correct or improve!

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

No branches or pull requests

4 participants