feat(cli): Parsing dates/times for recording new journal entries
Explore approaches to parsing dates & times on the edid
CLI when recording a new journal entry.
If I want to express something like `edid entry new two beers at 7 PM yesterday", how is the date/time parsing handled.
Doesn't need to be fancy, but needs to not be entering RFC formats.
Rust Libraries
crate | actively maintained? |
---|---|
chrono_english | No |
date_time_parser | |
dateparser | |
event_parser | |
interim | |
htp | |
rustling-ontology |
Other Languages
Stuff that might be interesting to look at for inspiration:
- https://github.com/zoho/hawking
- https://github.com/facebook/duckling
- https://sibelius.medium.com/parsing-slack-remind-command-fc3f5e4026e
TUI Considerations
After thinking about this more, it might be more pleasant to do a TUI-style prompt for date/time than worrying about the nuances & difficulties of parsing date/time as text (or as a fallback?).
Maybe something like inquire::DateSelect
(though that lacks time support): https://crates.io/crates/inquire
Edited by lazulite