Feature: Find next appointment called X
Hi, new to this so sorry if this is obvious but I'm trying to find out how to get the next appointment called X please? Purely from bash.
The end result is that I can set a mostly regular event, say 'Wake' and script from that. With it automatically updating if I decide I'm planning in a later meeting that day.
Many thanks,
gcalcli wraps google's search functionality which is part of the calendar api. So in general, you can run gcalcli search wake and parse the output. See gcalcli search --help for some ways you can constrain the search. If you know that the even you want is coming up at some particular time, you could parse the output of agenda.
In either case, if a script is reading the output of gcalcli, you may want to use --tsv since that will make the output easier to parse.
I hope this helps, if you provide more details I may be able to advise further.
Ahh, you're a star! Am I looking in the wrong place for arguments, man page doesn't show --tsv?
gcalcli search --help Gives
Provides case insenstive search for calendar events. positional arguments: text start end
So I can search
I'll have another read of the man pages but, if you use days for start/ stop position, what time of the day does gcalcli use for both the start and end positions?
I'm not sure that's clear so, in my head (a weird place)
gcalcli search
but gcalcli search
Thank you so much for writing this, it's going to make a huge difference!