Show Pending in either Today's list of the Future list, but not both at the same time.
This commit is contained in:
parent
a373af0658
commit
9d8780ea21
@ -1,6 +1,6 @@
|
||||
# Package
|
||||
|
||||
version = "4.19.0"
|
||||
version = "4.20.0"
|
||||
author = "Jonathan Bernard"
|
||||
description = "Personal issue tracker."
|
||||
license = "MIT"
|
||||
|
@ -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
|
||||
|
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user