Created
June 16, 2015 20:27
-
-
Save jkishner/72ac06d7a477585ea51e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import reminders | |
import editor | |
editor.insert_text('# TV Shows to Watch') | |
editor.insert_text('\n\n') | |
cals = reminders.get_all_calendars() | |
for calendar in cals: | |
if calendar.title == 'tv': | |
tvs = reminders.get_reminders(calendar,completed=False) | |
for x in tvs: | |
editor.insert_text('* ' + x.title) | |
editor.insert_text('\n') | |
editor.insert_text('\n') | |
editor.insert_text('# Movies to Watch') | |
editor.insert_text('\n\n') | |
for calendar in cals: | |
if calendar.title == 'movies': | |
movs = reminders.get_reminders(calendar,completed=False) | |
for x in movs: | |
editor.insert_text('* ' + x.title) | |
editor.insert_text('\n') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment