Commit graph

151 commits

Author SHA1 Message Date
e2aa7c1a29 Specify range on command line
Also use the current date as base for the range if no date is specified.
Previously, it was all hardcoded.
2021-12-13 11:43:12 +00:00
494f1976c6 Restructure command line args 2021-12-12 22:13:22 +00:00
cdf28edec6 Add --reformat and --reformat-all flags 2021-12-12 20:35:57 +00:00
5d03f6098e Left-align "now" 2021-12-12 20:35:28 +00:00
5d191d0edd Remember what files error spans come from 2021-12-12 20:18:58 +00:00
7bab866eae Keep more error context info 2021-12-12 19:59:20 +00:00
2f8676533e Load file from .config/today/main.today by default 2021-12-12 19:35:54 +00:00
6f1a533b95 Fix out-of-range move commands 2021-12-12 19:09:38 +00:00
240becd28d Fix rendering of date lines 2021-12-12 19:09:11 +00:00
2276aae8c5 Improve format
I think the new format is more readable than the old one, but I might change it
around again when I add colors.
2021-12-12 17:20:21 +00:00
29770759cb Fix reminders for tasks 2021-12-12 11:12:09 +00:00
3c0ea68d29 Render layouts 2021-12-12 11:09:14 +00:00
ee2e5f4e97 Revamp layouting 2021-12-11 22:44:58 +01:00
6e6a696ca4 Allow out-of-bounds values for Time 2021-12-11 22:39:20 +01:00
44bcd5712d Layout entries 2021-12-11 20:45:55 +01:00
5ee70bd769 Implement proper errors for expression evaluation
... the hard way
2021-12-06 22:19:24 +01:00
efa9b7de03 Sort all entries after evaluation 2021-12-06 14:33:22 +00:00
3e70b2e2c9 Print dates in a nicer format 2021-12-06 13:55:13 +00:00
531a140c45 Fix MOVE statement 2021-12-06 13:54:23 +00:00
cb7c87b8b2 Implement formula evaluation for DATE statement 2021-12-06 12:47:19 +00:00
c391d76690 Limit birthday range with FROM and UNTIL 2021-12-06 11:01:21 +00:00
32e036f337 Write tests for all delta steps 2021-12-06 01:45:00 +01:00
09f687bea0 Implement rest of delta steps 2021-12-05 20:02:24 +01:00
54ffb7a70a Extract primitive types to separate file 2021-12-05 19:21:59 +01:00
d105d959fa Implement some more delta steps 2021-12-05 19:15:08 +01:00
9920b00916 Get rid of some warnings 2021-12-05 18:39:53 +01:00
8d49ac139a Use span in step error message 2021-12-05 18:35:34 +01:00
96be690e9a Clean up some imports 2021-12-05 18:30:09 +01:00
7c5bd26049 Implement custom Debug for Time 2021-12-05 18:29:04 +01:00
6d090b428f Sort entries for a single command by date 2021-12-05 18:28:59 +01:00
4c83df76d4 Implement DATE statement 2021-12-05 18:27:42 +01:00
85d2c4bf89 Simplify entries and entry dates 2021-12-05 17:06:27 +01:00
63f5c6fba9 Add some TODOs 2021-12-05 16:15:43 +01:00
d7dc8aac77 Evaluate BDATEs again 2021-12-04 23:34:27 +01:00
2112272347 Reorganize spec evaluation 2021-12-04 23:24:21 +01:00
3a219ecac2 Evaluate some simple statements 2021-12-04 22:37:01 +01:00
778576a63c Use simpler date type for entries 2021-12-04 21:52:23 +01:00
de1f4a303f Make eval compile again 2021-12-04 21:42:45 +01:00
d8782fa28a Remove EntryMap 2021-12-04 19:55:47 +01:00
b5ef9e8134 Change commands to a more statement-driven format 2021-12-04 19:39:15 +01:00
f42027e378 Collect relevant entries based on different modes 2021-12-04 18:44:56 +01:00
b8aeb79323 Evaluate some deltas 2021-12-03 20:17:49 +00:00
0eda941ed7 Keep file contents in memory 2021-11-29 11:16:33 +00:00
1170009b4f Carry source spans for error messages 2021-11-29 11:14:48 +00:00
1d80ab681e Add eval representation of DateSpec 2021-11-26 14:55:44 +00:00
e827556c84 Add eval representation of FormulaSpec 2021-11-25 02:42:27 +01:00
21739c7314 Implement basic structure for task evaluation 2021-11-25 01:24:16 +01:00
11399468e7 Allow repetitions to start from last DONE 2021-11-25 01:23:50 +01:00
bfbf53784b Include more info in DONE 2021-11-24 03:03:24 +01:00
0bb01369b8 Implement basic structure for note evaluation 2021-11-24 02:05:31 +01:00