Commit graph

199 commits

Author SHA1 Message Date
4a2f72fabf Remove unnecessary label messages 2022-01-15 01:13:31 +01:00
f82b368fe1 Use new format syntax in most places 2022-01-15 01:10:33 +01: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
fe1bf309b8 Prepare string editing for 'today new' 2022-01-14 22:37:55 +01:00
82affe39a1 Simplify error handling in cli module 2022-01-14 22:07:02 +01:00
371c86f10f Reword changelog slightly 2022-01-14 22:07:02 +01:00
0b4f614af6 Specify default capture file 2022-01-14 22:07:02 +01:00
039b7b73ee Reorder commands inside a file again 2022-01-09 20:25:02 +01:00
d169037b7a Don't store file content string in File 2022-01-09 20:12:06 +01:00
721718eee4 Fix line numbers in show command 2022-01-09 16:49:10 +01:00
170e291ec5 Simplify DoneDate when formatting 2022-01-09 16:44:15 +01:00
20fc4bd3cc Update changelog 2022-01-09 16:39:50 +01:00
d7a26128a0 Fix show command argument parsing 2022-01-09 16:04:42 +01:00
26479ac58d Improve format of show command 2022-01-09 16:04:34 +01:00
b430f1594f Add spans to all commands 2022-01-09 15:12:15 +01:00
e0b6c839e2 Fix doc comment 2022-01-08 04:15:22 +01:00
1721f8c456 Ignore clippy warning 2022-01-08 04:12:14 +01:00
efc97800b2 Remove empty logs 2022-01-08 04:11:55 +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
b3d81a8d0a Fix more warnings 2022-01-06 18:34:09 +01:00
80666c2cf5 Use same path for saving files as for loading 2022-01-06 18:22:26 +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
8ae691bc3c Adapt eval code to changes
These changes include the new file representation and Files API as well
as the codespan error reporting.
2022-01-02 15:06:40 +01:00
810ec67cf7 Reenable basic cli interaction 2022-01-02 15:06:40 +01:00
ef287b9fd0 Format some errors with codespan-reporting 2022-01-02 15:06:40 +01:00
d9c1dc78e4 Integrate codespan-reporting 2022-01-02 11:47:22 +01:00
d8617ede24 Adapt Files to new file representation 2022-01-02 00:43:06 +01:00
d27812b836 Represent commands in file uniformly 2022-01-02 00:42:06 +01:00
004aa87153 Disable modules in preparation for refactoring
This way, compile errors from modules further up the dependency chain
don't obscure the important errors
2022-01-02 00:36:53 +01:00
017098da34 Parse and format logs 2022-01-01 14:43:23 +01:00
0e4ef7fef3 Allow tasks to be canceled 2021-12-31 23:57:40 +01:00
e0cb1c8f23 Don't write unchanged files 2021-12-31 02:42:31 +01:00
e01de41925 Make current day stand out more 2021-12-30 02:30:13 +01:00
8af268bd68 Switch to patched tzdir
This fixes today not respecting the TZDIR environment variable, which is
necessary since NixOS uses a nonstandard time zone data location.
2021-12-29 00:53:37 +01:00
f9dbc0db01 Format Cargo.toml 2021-12-23 17:02:41 +00:00
2b88008ba3 Align "now" time with other times 2021-12-22 17:02:51 +00:00
7a67d01e1f Fix reminders not making entries relevant 2021-12-22 16:39:13 +00:00
e2624fe64f Fix "now" not being right-aligned 2021-12-22 16:11:34 +00:00
2078c5e883 Color output 2021-12-22 15:58:10 +00:00
12c86e0d28 Fix formatting of ReminderWhile 2021-12-21 19:56:31 +01:00