insanum / gcalcli

Google Calendar Command Line Interface
MIT License
3.27k stars 307 forks source link

Adding week number to weeks displayed #543

Open isene opened 4 years ago

isene commented 4 years ago

How could I add the week number to each week displayed?

kpence commented 3 years ago

Do you want it like this?

calm: image

calw: image

isene commented 3 years ago

This is fine. Having it at the beginning of the week is even finer :-)

kpence commented 3 years ago

Is this okay?

image

isene commented 3 years ago

That would be great. And make that an option (like --weeknumber)?

kpence commented 3 years ago

Ok I made it an option (--week-number) on my fork off the latest master branch.

I made the change here: https://github.com/kpence/gcalcli/commit/50b0cc5b8b0ef616722aa29917d645daf7398468

Example usages:

gcalcli calm --week-number
gcalcli calw --week-number

Edit: I changed it to week-number from week-numbers, because that makes more sense, considering in calw there's only one week number displayed.