You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Google Calendar API Event properties conferenceData.entryPoints[], attachments[], reminders.overrides[], and attendees[] properties are all lists.
Currently, only --details conference is supported by agenda --tsv. The current implementation prints only the first list element, which has never been an issue for me. But it will not work well for the other properties, and I'd like to see attachments implemented.
How to expose these fields with multiple elements? Given that escaping of newlines (especially) and tabs in event properties is required for the TSV format to work here, perhaps we can use the ASCII form feed character '\f' to provide item separation within a field. If, by some astonishing situation, it is actually in the text, we can escape it as r'\f'.
Some backslash-escaping format is going to be most convenient here. Introducing another form of escaping is going to require multiple ways of unescaping.
Other options:
r'\t': Tab is a less exciting character, but nesting tabs and the two-character string r'\t's is a bit confusing. This was my original idea, but it was even awkward to describe it in the issue.
r'\n': I don't like this because newlines are more likely to actually occur in the text than a tab, so double-escaping is going to be necessary.
'\0' or r'\0': I don't like this because a null character may break some of the downstream programs one might want to use to process the output
other, more esoteric code points like ASCII field separator: seem like extra complexity and weirdness for little gain
adding quoting of elements: a whole extra ball of complexity I'd like to avoid
I'm open to other suggestions.
The text was updated successfully, but these errors were encountered:
The Google Calendar API
Event
propertiesconferenceData.entryPoints[]
,attachments[]
,reminders.overrides[]
, andattendees[]
properties are all lists.Currently, only
--details conference
is supported byagenda --tsv
. The current implementation prints only the first list element, which has never been an issue for me. But it will not work well for the other properties, and I'd like to seeattachments
implemented.How to expose these fields with multiple elements? Given that escaping of newlines (especially) and tabs in event properties is required for the TSV format to work here, perhaps we can use the ASCII form feed character
'\f'
to provide item separation within a field. If, by some astonishing situation, it is actually in the text, we can escape it asr'\f'
.Some backslash-escaping format is going to be most convenient here. Introducing another form of escaping is going to require multiple ways of unescaping.
Other options:
r'\t'
: Tab is a less exciting character, but nesting tabs and the two-character stringr'\t'
s is a bit confusing. This was my original idea, but it was even awkward to describe it in the issue.r'\n'
: I don't like this because newlines are more likely to actually occur in the text than a tab, so double-escaping is going to be necessary.'\0'
orr'\0'
: I don't like this because a null character may break some of the downstream programs one might want to use to process the outputI'm open to other suggestions.
The text was updated successfully, but these errors were encountered: