Show Pending in either Today's list of the Future list, but not both at the same time.

This commit is contained in:
Jonathan Bernard 2022-07-28 10:48:51 -05:00
parent a373af0658
commit 9d8780ea21
3 changed files with 8 additions and 4 deletions

View File

@ -1,6 +1,6 @@
# Package
version = "4.19.0"
version = "4.20.0"
author = "Jonathan Bernard"
description = "Personal issue tracker."
license = "MIT"

View File

@ -263,7 +263,11 @@ proc list(
if future:
if today: ctx.writeHeader("Future")
for s in [Pending, Todo]:
let futureCategories =
if showToday: @[Todo]
else: @[Pending, Todo]
for s in futureCategories:
if ctx.issues.hasKey(s) and ctx.issues[s].len > 0:
let visibleIssues = ctx.issues[s].filterIt(
showHidden or

View File

@ -1,4 +1,4 @@
const PIT_VERSION* = "4.19.0"
const PIT_VERSION* = "4.20.0"
const USAGE* = """Usage:
pit ( new | add) <summary> [<state>] [options]
@ -166,4 +166,4 @@ Issue Properties:
If present, expected to be a comma-delimited list of text tags. The -g
option is a short-hand for '-p tags:<tags-value>'.
"""
"""