ActivityWatch / aw-watcher-window

Cross-platform window watcher (for use with ActivityWatch)
Mozilla Public License 2.0
91 stars 53 forks source link

Custom title filter #32

Open yzhang-gh opened 6 years ago

yzhang-gh commented 6 years ago

The daily title stats is really useful. But I see something like this

image

So I would like to remove the leading when watching.

I have inspected the source code, wondering whether there is an non-intrusive way to do it.

ErikBjare commented 6 years ago

This would be something we could add to the simplify_string transform that we'll be adding here: https://github.com/ActivityWatch/aw-core/pull/55

There might be other markers used for unsaved files like this one (I guess an asterisk is kind of common), but we'd have to take them on a case-by-case basis to avoid unexpected cases where the rules shouldn't be applied.

ErikBjare commented 6 years ago

I added the relevant part for VSCode in this commit: https://github.com/ActivityWatch/aw-core/pull/55/commits/a837dac27c0eb30985358aa281529199bf4d4f4c

Now we just need to merge it and start using simplify_string in the queries.

yzhang-gh commented 6 years ago

Glad to know that 👍