![]() group ( 2 ), d ) 30 31 32 def NextMonth ( date ): 33 if date. Show without line numbers 1 #!/usr/bin/python 2 3 import argparse 4 from datetime import datetime 5 import re 6 import subprocess 7 8 WHEN = "/usr/local/bin/when" 9 10 def When ( start, days, filename ): 11 command = [ 12 WHEN, 13 "-future=)". I wrote a quick Python script to translate this into TaskPaper syntax. When I run when with my new calendar file, I get this output: today 2014 Feb 22 Transunion credit report This happens every 385 days, starting today. The expression !(j%385-116) is true whenever the modified Julian day isĮqual to 116 modulo 385. For example, I put this line in my file: !(j%385-116), Transunion credit report You can alsoĭo more complicated patterns. You store yourĬalendar entries in a text file using a cron-like syntax. The plain-text calendar tool when, which I also use to rememberīirthdays, seems like the perfect tool for the job. My repeating tasks in an external file, and then once a month have them inserted Makes it easy to manipulate using external scripts. Taskpaper has no built-in support for repeating tasks, but its plain-text format The solution is to give myself a buffer, and plan on downloading Until the 4th, I have to wait until at least the 4th the following year. Just do it every year on January 1, because if I’m busy one year and don’t do it ForĮxample, once per year, I download a free copy of my credit report. I have a lot of repeating tasks, some with strange intervals. Minimalist, flexible, plain-text approach to managing a to-do list. I’ve been kicking the tires of TaskPaper lately. Repeating tasks for TaskPaper Nathan Grigg
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |