Exemple #1
0
     else:
         print "Usage: " + sys.argv[0] + " replace <item_num> TEXT"
 elif (action == "edit" or action == "e"):
     edit(TODO_FILE)
 elif (action == "edone" or action == "ed"):
     edit(DONE_FILE)
 elif (action == "remdup"):
     removeDuplicates()
 elif (action == "report"):
     report()
 elif (action == "today" or action == "y"):
     listDays(1)
 elif (action == "week" or action == "w"):
     listDays(7)
 elif (action in ["birdseye", "b", "bird", "summarize", "overview"]):
     birdseye()
 elif (action in ["lsr", "listproj", "projects"]):
     projects, contexts = listKeywords()
     displaySummary(projects,
                    name="Projects",
                    listDone=False,
                    type=displayType)
 elif (action in ["lsra", "listallproj", "allprojects"]):
     projects, contexts = listKeywords()
     displaySummary(projects,
                    name="Projects",
                    listDone=True,
                    type=displayType)
 elif (action in ["lsc", "listcon", "contexts"]):
     projects, contexts = listKeywords()
     displaySummary(contexts,
Exemple #2
0
     else:
         print "Usage: " + sys.argv[0] + " replace <item_num> TEXT"
 elif (action == "edit" or action == "e"):
     edit(TODO_FILE)
 elif (action == "edone" or action == "ed"):
     edit(DONE_FILE)
 elif (action == "remdup"):
     removeDuplicates()
 elif (action == "report"):
     report()
 elif (action == "today" or action == "y"):
     listDays(1)
 elif (action == "week" or action == "w"):
     listDays(7)
 elif (action in ["birdseye", "b", "bird", "summarize", "overview"]):
     birdseye()
 elif (action in ["lsr", "listproj", "projects"]):
     projects, contexts = listKeywords()
     displaySummary(projects, name="Projects", listDone=False, type=displayType)
 elif (action in ["lsra", "listallproj", "allprojects"]):
     projects, contexts = listKeywords()
     displaySummary(projects, name="Projects", listDone=True, type=displayType)
 elif (action in ["lsc", "listcon", "contexts"]):
     projects, contexts = listKeywords()
     displaySummary(contexts, name="Contexts", listDone=False, type=displayType)
 elif (action in ["lsca", "listallcon", "allcontexts"]):
     projects, contexts = listKeywords()
     displaySummary(contexts, name="Contexts", listDone=True, type=displayType)
 elif (action in ["lsk", "listkeys", "keywords"]):
     projects, contexts = listKeywords()
     displaySummary(projects, name="Projects", listDone=False, type=displayType)
Exemple #3
0
     listSnippets()
 elif (action == "c" or action == "current"):
     listCurrentSnippets()
 elif (action == "x" or action == "context"):
     setCurrentFilter()
 elif (action == "xa" or action == "appendcontext"):
     appendCurrentFilter()
 elif (action == "xr" or action == "resetcontexts"):
     resetFilters()
 elif (action == "xl" or action == "listcontexts"):
     listFilters()
 elif (action == "sync"):
     runSvn()
 elif (action in ["birdseye", "b", "bird", "summarize", "overview"]):
     if (len(args) > 0):
         birdseye(args)
     else:
         birdseye()
 elif (action in ["lsr", "listproj", "projects"]):
     projects, contexts = listKeywords()
     displaySummary(projects, name="Projects", listDone=False, type=displayType)
 elif (action in ["lsra", "listallproj", "allprojects"]):
     projects, contexts = listKeywords()
     displaySummary(projects, name="Projects", listDone=True, type=displayType)
 elif (action in ["lsc", "listcon", "contexts"]):
     projects, contexts = listKeywords()
     displaySummary(contexts, name="Contexts", listDone=False, type=displayType)
 elif (action in ["lsca", "listallcon", "allcontexts"]):
     projects, contexts = listKeywords()
     displaySummary(contexts, name="Contexts", listDone=True, type=displayType)
 elif (action in ["lsk", "listkeys", "keywords"]):