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

Custom title filter

Open yzhang-gh opened this issue 6 years ago • 3 comments

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.

yzhang-gh avatar Apr 19 '18 14:04 yzhang-gh

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 avatar Apr 19 '18 17:04 ErikBjare

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.

ErikBjare avatar May 21 '18 10:05 ErikBjare

Glad to know that 👍

yzhang-gh avatar May 21 '18 11:05 yzhang-gh