Closed anton2020 closed 2 years ago
Try something like this:
tasks = getTasks();
setCursor(tasks[Math.floor(Math.random()*tasks.length)],'scroll');
openTaskView();
@mdbraber Thanks for the suggestion. I tried wrapping it up as a bookmarklet and it sadly did not work. Do you think I could use it another way somehow?
Maarten's code is using functions that are only defined inside todoist shortcuts. It avoids putting identifiers in the window object, out of politeness (and potential accidental shadowing of Todoist's use of the window object). So, this would need to be code in a new shortcut handler. There's some documentation of how to use a locally modified version of todoist shortcuts: https://github.com/mgsloan/todoist-shortcuts#how-to-customize-keyboard-shortcuts
Glad to see interest in enhancements! I am busy right now but hoping to take a closer look at the recent issue tracker activity in the next few days
On Thu, Jan 13, 2022 at 2:11 PM Anton @.***> wrote:
@mdbraber https://github.com/mdbraber Thanks for the suggestion. I tried wrapping it up as a bookmarklet and it sadly did not work. Do you think I could use it another way somehow?
— Reply to this email directly, view it on GitHub https://github.com/mgsloan/todoist-shortcuts/issues/190#issuecomment-1012518714, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAFQKUL4M525BSCZNRM27DUV45XZANCNFSM5LUP42UQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message ID: @.***>
Added in version 139! Shortcut is ctrl+?
(aka ctrl+shift+/
)
Just tested, works great, thank you for the awesome addition!
Hi there, thanks for the great extension. I'd like to propose an enhancement: add a shortcut to open a random task in a given view. It sometimes helps to use something like this to start off working on tasks.
I saw a discussion of a similar solution on Reddit (1) but it's dated and the proposed solutions seem to not working. What do you think?
(1) https://i.reddit.com/r/todoist/comments/cykokc/i_made_two_tools_to_pick_random_todoist_tasks_my/