-
Notifications
You must be signed in to change notification settings - Fork 4
Description
There's a package active-window (repo) that looks to be just enough to be able to do this, and no more, assuming it works well enough. Which it might not, looking at the issues. But there are several PRs addressing the issues, and even if they aren't merged in the main repo, they could still be used in a fork.
We'd want to do regex matching generally anchored on the end of the title, e.g. /.* - Sublime Text( \(UNREGISTERED\))?$/ to avoid matching for example Sublime Text - Download - Google Chrome.
Also you'll get noisier data when tracking the active window, such as when switching between your IDE and a program you're working on, or documentation etc. so it would probably be good to automatically connecting the spans of time labeled as programming, but that could happen later when displaying/graphing the data, or earlier.