Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom title filter #32

Open
yzhang-gh opened this issue Apr 19, 2018 · 3 comments
Open

Custom title filter #32

yzhang-gh opened this issue Apr 19, 2018 · 3 comments

Comments

@yzhang-gh
Copy link

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
Copy link
Member

This would be something we could add to the simplify_string transform that we'll be adding here: ActivityWatch/aw-core#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
Copy link
Member

I added the relevant part for VSCode in this commit: ActivityWatch/aw-core@a837dac

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

@yzhang-gh
Copy link
Author

Glad to know that 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants