From f758b244242ae4c4309c88a0899cfe9c368aabca Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Fri, 29 Jan 2021 15:28:08 +0900 Subject: find.py: add -is option to ignore status find.py will add -ns automatically if user didn't select -s or -ns, but it is not good if user want to search from all tasks. This patch adds -is to ignore status. Signed-off-by: Kuninori Morimoto --- README.md | 1 + scripts/find.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7f0e519..65d74a7 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ You need to have **.config** file. You can copy sample .config, and edit it - ject 7ddd3743-fa13-4966-bcf0-10609b873ab5 e704e989-ccaa-48a5-8f58-28c5b93467ff * -s : show matched status task * -ns : show unmatched status task + * -is : ignore status - ject -s Active ... # single match - ject -s Active,New ... # multi match - ject -ns Done # not match diff --git a/scripts/find.py b/scripts/find.py index 9941bff..e0f6558 100755 --- a/scripts/find.py +++ b/scripts/find.py @@ -27,7 +27,7 @@ class find(base.base): # replace -a NoAssignee to -na "" # # add "-ns Done" automatically - # if user doesn't specify "-s" or "-ns" + # if user doesn't specify "-s" or "-ns" or "-is" match = 0 for i in range(len(arg)): if (arg[i] == "-all"): @@ -36,7 +36,7 @@ class find(base.base): (arg[i+1] == "NoAssignee")): arg[i] = "-na" arg[i+1] = "" - if ((arg[i] == "-s") or (arg[i] == "-ns")): + if ((arg[i] == "-s") or (arg[i] == "-ns") or (arg[i] == "-is")): match = 1 if (not match): -- cgit v1.2.3