aw-watcher-jetbrains icon indicating copy to clipboard operation
aw-watcher-jetbrains copied to clipboard

Considering not taking background time into account?

Open onlyice opened this issue 4 years ago • 4 comments

This plugin is really convenient and helpful. But there's a situation that can be handled better.

I open PyCharm to work on my project. Then I switch to Google Chrome to view some documents. But the time I'm not editing the code file in PyCharm is collected and reported to the Activity Watch server. This is mostly not as expected.

onlyice avatar Nov 13 '19 09:11 onlyice

Hi,

On Jetbrains IDEs I can only get IDEs events, and there is no event like "Left IDE", "Back to IDE".

For that it's on activity watch to do something.... You can get time pass on each app, and afk times.

Or if no interaction since 60sec I dont record ? Not really good You can pass 5min to watch a code part no, how to set a good limit... ?

OlivierMary avatar Nov 14 '19 10:11 OlivierMary

Or if no interaction since 60sec I dont record ? Not really good You can pass 5min to watch a code part no, how to set a good limit... ?

I think it's a good idea. Maybe you can provide an option for user to specify the heartbeat suspending timeout?

onlyice avatar Nov 18 '19 11:11 onlyice

Why not, by default no timeout and if need a configurable timeout.

OlivierMary avatar Nov 18 '19 13:11 OlivierMary

Or if no interaction since 60sec I dont record ? Not really good You can pass 5min to watch a code part no, how to set a good limit... ?

This is how many other editor watchers do it. At least that's how I did it in aw-watcher-vim but if I remember correctly I've seen other editor watchers doing it this way too.

johan-bjareholt avatar Oct 29 '20 19:10 johan-bjareholt

According to https://github.com/ActivityWatch/aw-server-rust/issues/174#issuecomment-703445799 this module should use heartbeat API.

tmotyl avatar Feb 02 '23 11:02 tmotyl

Just submit v2.0.0 to JB review when publish can you tell me if changes works for you?

OlivierMary avatar Feb 02 '23 19:02 OlivierMary

@tmotyl I see some issues on windows and rust server see #113 , have to wait validation of 2.0.4.

OlivierMary avatar Feb 04 '23 02:02 OlivierMary

Thanks @OlivierMary for taking care. Highly appreciated! i will test it next days

tmotyl avatar Feb 04 '23 07:02 tmotyl