Ellpeck / ObsidianSimpleTimeTracker

Multi-purpose time trackers for your notes!
MIT License
132 stars 19 forks source link

Trigger with hotkeys #6

Open dionvansevenant opened 1 year ago

dionvansevenant commented 1 year ago

Great start to the plugin!

For the future, please consider adding the ability to trigger the timers with hotkeys.

Currently I just run 1 timer at a time, so a "start" trigger should prompt for the "Segment name", and a "stop" trigger should just stop the running timer.

If other people run multiple timers, I could see a need to prompt for the segment to affect with the start/stop trigger.

Thanks!

Ellpeck commented 1 year ago

I'm not really sure about a good way to implement this, since it wouldn't be clear what timer should be started using the hotkey. One of the ones in the current file sounds logical, but... how would you select which one?

dionvansevenant commented 1 year ago

I'm not sure how to implement that selection part. If the plugin parsed the existing block to see what "name" fields exist and then presented a selector based on those, that could work.

Dion

On Fri, Nov 4, 2022 at 2:24 PM Ellpeck @.***> wrote:

I'm not really sure about a good way to implement this, since it wouldn't be clear what timer should be started using the hotkey. One of the ones in the current file sounds logical, but... how would you select which one?

— Reply to this email directly, view it on GitHub https://github.com/Ellpeck/ObsidianSimpleTimeTracker/issues/6#issuecomment-1303977391, or unsubscribe https://github.com/notifications/unsubscribe-auth/APY26UHYQOK3JS7ABP5MYW3WGVIEHANCNFSM6AAAAAARXND5G4 . You are receiving this because you authored the thread.Message ID: @.***>

manu-facture commented 1 year ago

I would say, that a hotkey which just toggles the last active Timer on an off would be amazing. Maybe there is a better bigger way but this would be awesome already!