Commit graph

37 commits

Author SHA1 Message Date
a63529b972 Increase default --range by one day 2022-05-04 11:17:25 +02:00
a3a0e0b9cf Add more 'today new' templates 2022-01-14 23:23:34 +01:00
3befb7c773 Implement 'today new' 2022-01-14 22:41:31 +01:00
0dcb75b103 Parse arbitrary commands 2022-01-14 22:37:59 +01:00
82affe39a1 Simplify error handling in cli module 2022-01-14 22:07:02 +01:00
26479ac58d Improve format of show command 2022-01-09 16:04:34 +01:00
26c9c1faf1 Add one-letter command aliases 2022-01-08 01:02:13 +01:00
ff642cc8c8 Specify --date via CliDate 2022-01-08 01:01:49 +01:00
0484eda859 Add 'log' cli command 2022-01-08 00:49:17 +01:00
3e2fa54213 Show logs in addition to entries 2022-01-07 22:34:00 +01:00
badc0d7a9f Print parse errors with codespan-reporting 2022-01-07 21:58:45 +01:00
2f6911eeca Refactor CLI argument parsing 2022-01-07 20:04:31 +01:00
4a46e70a73 Print markers for logs and entry descriptions 2022-01-06 19:15:56 +01:00
a4a6726091 Fix a few warnings 2022-01-06 18:22:18 +01:00
3f5e06b113 Adapt cli code to changes 2022-01-06 18:04:34 +01:00
5e47dddd4c Make error formatting more generic
Now, some errors are generic over the FileId type, meaning I can now
pretty-print command line argument errors as well as normal errors with
the same machinery. This is accomplished via the Eprint trait, whose
generics are a tad complex but probably still fine.
2022-01-05 02:59:03 +01:00
810ec67cf7 Reenable basic cli interaction 2022-01-02 15:06:40 +01:00
0e4ef7fef3 Allow tasks to be canceled 2021-12-31 23:57:40 +01:00
e9ec2998f0 Implement --range 2021-12-19 00:56:34 +01:00
ff627b98df Prepare eval error handling for cli arg errors 2021-12-18 23:31:27 +01:00
d67bf0aeea Improve error handling 2021-12-18 18:56:18 +01:00
96f7aa77dc Restructure CLI 2021-12-16 03:00:26 +01:00
ab63261dfd Support marking multiple tasks as done
Not yet exposed via the CLI though
2021-12-16 00:47:59 +01:00
c07d27aa13 Overhaul file erorr handling 2021-12-15 19:17:06 +00:00
b476a95afb Implement done command 2021-12-14 22:37:27 +01:00
8d004ab16c Add todos 2021-12-13 23:44:41 +01:00
e912d6db1a Fix rustdoc warnings 2021-12-13 21:14:37 +00:00
34a053cbe4 Show single entries 2021-12-13 19:00:53 +00:00
8239a535f6 Reorganize layout and rendering code 2021-12-13 13:13:20 +00:00
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
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
3c0ea68d29 Render layouts 2021-12-12 11:09:14 +00:00
ee2e5f4e97 Revamp layouting 2021-12-11 22:44:58 +01:00
44bcd5712d Layout entries 2021-12-11 20:45:55 +01:00