1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

11 Commits

Author SHA1 Message Date
Anand Sudhir Prayaga
c8b6eb2b60 Fix references to old Github repo location with new one 2018-11-28 14:47:06 +01:00
Nicholas Eden
c8ab4af790 Display all day events in calendar, see #306 2018-10-03 21:34:14 -07:00
Anand Sudhir Prayaga
8f4c53d58a Make google calendar focussable
When there are lot of events, the content in teh widget is hidden and there is no way to view the  upcoming events. Making the widget focussable allows for one to scroll through the list of calendar events using the arrow keys
2018-08-22 13:47:44 +02:00
Chris Cummer
72c192cabf Clean up a bunch of if statements based on govet results 2018-08-03 05:40:39 -07:00
Chris Cummer
0cfdd93502 Minor improvements based on 'go vet' 2018-08-03 05:25:17 -07:00
Bryan Austin
090c4e716c Default new option to false, update documentation 2018-08-01 12:50:37 -07:00
Bryan Austin
f1bbd8564f Add option to hide declined calendar events
My calendar view looks quite a bit cleaner with meetings I've said
"no" to taken out. This change adds a new option
`wtf.mods.gcal.showDeclined`, defaulting to `true`, which controls
whether or not the gcal module displays events where your status is
"declined".

I think as a quality of life feature, this is better off defaulting
to `false` (i.e. _don't_ show declined events by default), but when
it comes to potentially disrupting other users who've gotten used
to the existing setup, I'll leave that decision to you.
2018-08-01 12:50:37 -07:00
Bryan Austin
bb6e5f02f3 Fix issue with date comparison on the 1st of the month
Today, August 1st, I was surprised to see WTF missing the date
header over my calendar events. It turns out that when I extended
the `dayDivider` function to use a default (epoch) time for
considering whether to print a header over the first event (when
`prevEvent == nil`), I didn't consider that 1 out of every ~30
days will happen to have the same day of the month as the epoch
time.

To fix this and make date headers show up on the 1st of the month
again, dates are truncated to midnight and compared for equality,
rather than just comparing a component of them.

I *think* converting times to local time before truncating to
midnight is the correct way to do this - otherwise, midnight in
one time zone would never equal midnight in another time zone. As
it happens, all my meetings take place in San Francisco, so I'm not
the best test vector for how this works with meetings/calls in
different time zones.
2018-08-01 11:31:19 -07:00
Chris Cummer
89868c169c New and improved multicalendar display format 2018-07-11 17:21:29 -07:00
Chris Cummer
c64270e6ad Wrap Google's calendar Event in a CalEvent struct 2018-07-11 17:21:29 -07:00
Chris Cummer
374cdc0612 Refactor GCal calendar code to simplify things 2018-07-11 17:21:29 -07:00