Browse Source

lazygit

main
Gregory Leeman 6 months ago
parent
commit
908a08040c
  1. 11
      wf/script.py

11
wf/script.py

@ -396,7 +396,9 @@ def main(): # {{{
subparsers.add_parser("hold", help="Hold projects")
subparsers.add_parser("sprint", help="Sprint goals")
subparsers.add_parser("today", help="Today's tasks")
subparsers.add_parser("habits", help="Habits")
subparsers.add_parser("habit", help="Habits")
subparsers.add_parser("story", help="Stories")
subparsers.add_parser("future", help="Futures")
args = parser.parse_args()
@ -428,12 +430,17 @@ def main(): # {{{
if args.command == "today":
today = get_today()
console.log(today)
show(PLANNER_ID, flat=True, filter_any=[today], color="blue")
if args.command == "habits":
show(PLANNER_ID, flat=True, filter_any=["xtimed", "xwhenever"], color="orange")
if args.command == "story":
show(PLANNER_ID, flat=True, filter_any=["xstory"], color="cyan")
if args.command == "future":
show(PLANNER_ID, flat=True, filter_any=["xfuture"], color="yellow")
# }}}
if __name__ == "__main__":

Loading…
Cancel
Save