aardappel / procrastitracker

a Windows time tracking application
http://strlen.com/procrastitracker/
496 stars 52 forks source link

Regular Expression support #18

Open ncannasse opened 7 years ago

ncannasse commented 7 years ago

When using the software, I find it's hard to categorize some tasks because the title will change often. For instance a web browser will display the title of the app but sometimes you would like to regroup several titles together (for instance "xxxx - YouTube").

My proposal would be to allow to configure a list of regular expressions that gets applied to application titles, so for instance adding:

.* - YouTube -> Youtube.com would merge all youtube videos watched into the same task.

The same apply for Github, and many other web services. The ability for the regexp to be applied afterwards would be nice.

aardappel commented 7 years ago

This would have to be done before the event gets added to the database, because it splits on characters like -. And it would need a UI to edit those regexps etc. Doing it retroactively would be harder since xxxx and Youtube are already different nodes in the database.

plmayer commented 6 years ago

There is no feature currently to do any regex or substring matching, right? So I would like to second the request :-)

KoBeWi commented 2 months ago

I started using ProcrastiTracker today and it's an issue I've hit immediately. Much of my work happens on GitHub and seems like every issue or pull request I open is listed as a separate entry with no hierarchy, which makes them unusable for me.