Commit Graph

15 Commits

Author SHA1 Message Date
9503962dd5 Allow for time adjustments with +/-
I much prefer this solution to the old one. Parsing times was a mistake.

I wonder if rustc realizes that I only ever pass 5 or -5 as arguments to
that function and then creates two `time::Duration`s for 5 and -5
minutes respectively to avoid the allocations on each keypress.

Also, I had to satisfy the OCD meme by rounding all adjusted times to %5.
It would be too annoying to change a number without being able to always
set it to a “nice” number.
2020-04-27 16:24:33 +02:00
a94d8b77ea Only allow toggling for todo items 2020-04-27 12:34:58 +02:00
32590fbfd6 Revert "make editing times possible"
This reverts commit 78ae05de42f2e21e339c84653b12cd06665f8737.
Thinking about what I wrote there made me realize that it’s a horrible
solution that is awful to use and makes the code an order of magnitude
worse.
2020-04-27 10:28:56 +02:00
78ae05de42
make editing times possible 2020-04-23 23:19:13 +02:00
f1eeb7b24e
allow overriding timesheet texts with [something] 2020-04-20 15:31:43 +02:00
b2a2d29216 exclude pause time in calculations 2020-04-20 14:54:47 +02:00
8b3b6c3d0b include current time point in sum calculation 2020-04-20 10:52:45 +02:00
6075a4369f Use Time instead of DateTime 2020-04-20 10:27:59 +02:00
129e890670
split into more modules 2020-04-19 20:11:28 +02:00
1204be40fb
clippy 2020-04-19 19:22:06 +02:00
1be551d4f5
improve sum_as_str 2020-04-19 19:07:54 +02:00
84f13d1806
clean up time grouping 2020-04-19 19:04:27 +02:00
292aeb417f
use macro for current focus 2020-04-18 18:15:23 +02:00
b52311e840
make timesheet work 2020-04-13 23:56:25 +02:00
61c385404b
Add WIP timesheet 2020-01-25 22:15:41 +01:00