Felix Geller avatar Felix Geller committed 7f168a7

Fixed typo in ELisp snippet; adjust whitespace in template; fix event formatting

Comments (0)

Files changed (1)

 #     (when gcal-id
 #       (start-process 
 #        "push2gcal" "*push2gcal*" 
-#        "gcal2org.py" "me@gmail.com" "update" gcal-id "text" new-title))))
+#        "gcal2org.py" "me@gmail.com" "update" gcal-id "title" new-title))))
 # (add-hook 'org-after-todo-state-change-hook
 # 	  'fg/publish-state-entry-state-change-to-gcal) 
 ITEM = """** %s
-   :GCalId:       %s
+   :GCalId:   %s
    :When:     %s
    :Where:    %s
    :Who:      %s
   return '%s--%s' % tuple([strftime(tstamp, t) for t in (st, et)])
 def write_item(event, org_file):
-  event_id = event.id.text
+  event_id = event.id.text[52:]
   title = event.title.text
   when = date_range(event.when[0].start, event.when[0].end)
   where = event.where[0].text or 'N/A'
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.