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

Add "week of year" expression #173

Merged
merged 5 commits into from
Mar 20, 2024
Merged

Add "week of year" expression #173

merged 5 commits into from
Mar 20, 2024

Conversation

isovector
Copy link
Contributor

My current contract for work is to do X hours of work a week. I use arbtt for everything else, and would like to have a convenient means of checking how much work I've done this calendar week.

This PR adds support for it.

Copy link
Owner

@nomeata nomeata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Nice to get contributions on kinda old projects :-)

Looks good to me. I assume you did actually test and use this code?

@isovector
Copy link
Contributor Author

I've added the following to my config:

week of year $now == week of year $date ==> tag this-week,

and it is working as expected :)

src/Categorize.hs Outdated Show resolved Hide resolved
@isovector
Copy link
Contributor Author

I've updated the documentation with the new expression!

@nomeata nomeata merged commit 1a50c0f into nomeata:master Mar 20, 2024
8 checks passed
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

Successfully merging this pull request may close these issues.

2 participants