Export item UIDs upon request

Add a new --export-uid command line option that adds each item's hash to
the UID property when exporting.

Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
Lukas Fleischer
2016-01-15 18:22:19 +01:00
parent 39a3c04144
commit caee34449c
5 changed files with 64 additions and 24 deletions

View File

@@ -293,10 +293,10 @@ static inline void key_generic_export()
switch (status_ask_choice
(export_msg, export_choices, nb_export_choices)) {
case 1:
io_export_data(IO_EXPORT_ICAL);
io_export_data(IO_EXPORT_ICAL, 0);
break;
case 2:
io_export_data(IO_EXPORT_PCAL);
io_export_data(IO_EXPORT_PCAL, 0);
break;
default: /* User escaped */
break;