Reputation: 904
Exporting an org-mode file to ical format, it seems that tags stay in events and todo titles. In agenda mode, i can remove them using org-agenda-remove-tags but i cannot find such an option for ical export. Is this feature implemented ?
Thank you for your advice...
Upvotes: 4
Views: 1243
Reputation: 1
globally: (setq org-icalendar-categories nil)
only for a particular execution: (let ((org-icalendar-categories nil)) (org-icalendar-export-to-ics nil t))
I arrived to the sourcecode through org-icalendar-export-to-ics
function, from there, I found this variable (that, as you see, defaults to '(local-tags category)
value):
(defcustom org-icalendar-categories '(local-tags category)
"Items that should be entered into the \"categories\" field.
This is a list of symbols, the following are valid:
`category' The Org mode category of the current file or tree
`todo-state' The todo state, if any
`local-tags' The tags, defined in the current line
`all-tags' All tags, including inherited ones."
:group 'org-export-icalendar
:type '(repeat
(choice
(const :tag "The file or tree category" category)
(const :tag "The TODO state" todo-state)
(const :tag "Tags defined in current line" local-tags)
(const :tag "All tags, including inherited ones" all-tags))))
How (org-icalendar-export-to-ics nil t)
works? Read the properties from the declared subtree (in that sense, works very similar to exporting a subtree with the org-export stuff), hence, in the parent you can also set property :EXPORT_FILE_NAME:
and that way you can point to another file path such as /tmp/invite.ics
:)
Upvotes: 0
Reputation: 7884
You can use
#+OPTIONS: tags:nil
to suppress the tags in exported files.
However, are you using the most up-to-date version fo Org-Mode?
I just tried doing what I understand your question to be and the tags don't seem to be included.
If I export the following headlines without the default settings:
* TODO Movie :Movie:blah:
Go see a movie
<2011-09-17 Sat 13:00-14:00>
My .ics file has the following:
BEGIN:VCALENDAR
VERSION:2.0
X-WR-CALNAME:test
PRODID:-////Emacs with Org-mode//EN
X-WR-TIMEZONE:-0400
X-WR-CALDESC:nil
CALSCALE:GREGORIAN
BEGIN:VEVENT
UID: TS-61193c39-f2e6-444c-9105-9499a2552bf5
DTSTART:20110917T130000
DTEND:20110917T140000
SUMMARY:TODO Movie
DESCRIPTION: Go see a movie\n<2011-09-17 Sat 13:00-14:00>
CATEGORIES:Movie,blah,test
END:VEVENT
END:VCALENDAR
I can see the tags listed as CATEGORIES, but not anywhere else.
The export only changes the UID if I add
#+OPTIONS: tags:nil
to the file. Although an ASCII or HTML export will both suppress the tags when the option is added.
Upvotes: 4