mgsloan / todoist-shortcuts

Browser extension which adds comprehensive keyboard shortcuts to Todoist, beyond what is offered by Todoist itself
MIT License
313 stars 23 forks source link

Add Shortcut for Session Button Extension #227

Open erauner12 opened 1 year ago

erauner12 commented 1 year ago

Could you please create a shortcut to execute Session Button (similar to how toggl and Clockify are executed)

Here is the extension

Here is an x-callback example:

session:///start?intent=${title}&categoryName=${projectName}`
image
erauner12 commented 1 year ago

After thinking on it. I think the whole process of clicking the button from the extension can be circumvented if a key binding would just send the task specific data directly to the x-callback-url.

mgsloan commented 1 year ago

I'd accept a PR adding such functionality. If the button has a distinguishing class (right click it and click "Inspect" to see it) then it could be as simple as adding it to the list here

erauner12 commented 1 year ago

Great! I'll try and work on this. Another question, is it possible to tie another action to this?

I'd like to tie a label to a task of doing that I have selected to start a Session.

mgsloan commented 1 year ago

On Fri, Oct 28, 2022 at 8:30 AM erauner12 @.***> wrote:

Great! I'll try and work on this. Another question, is it possible to tie another action to this?

Cool!

I'd like to tie a label to a task of doing that I have selected to start a Session.

Currently there is no code for adding a specific label, and todoist-shortcuts doesn't really offer comprehensive configuration. You could add such a thing in a locally modified version, though

erauner12 commented 1 year ago

You could add such a thing in a locally modified version, though Will probably give this a shot as well!

I think I'll start with this label adding action as a first run at it to see how useful it is.