hpdeifel / hledger-iadd

A terminal UI as drop-in replacement for hledger add.
BSD 3-Clause "New" or "Revised" License
77 stars 8 forks source link

Add abbreviated days of the week #36

Closed samdoshi closed 5 years ago

samdoshi commented 5 years ago

This PR updates weekDays to also accept shortened versions of the days of the week.

The logic is slightly complicated, as I needed to sort the list of days by the longest length in order to get megaparsec to match the longest day, and rather than doing this my hand I've added some code in so that it always happens.

I also added yest as an alternative for yesterday.

hpdeifel commented 5 years ago

Thanks, works really well!

I don't know why travis is so flaky, merging and pushing the commit to master completed just fine. Maybe pull-requests get lower memory limits than the master branch...