From 62d3ff29775b3df1c33ff726ba4438b1b4f90364 Mon Sep 17 00:00:00 2001 From: Ingo Karkat Date: Fri, 30 Sep 2011 09:11:54 +0200 Subject: [PATCH 1/2] BUG: Option -x isn't propagated to custom actions. Somehow, no default is set for TODOTXT_DISABLE_FILTER, so that it isn't exported, and therefore does not apply to the sourced actions, so you cannot disable filtering for "myaction" via todo.sh -x myaction. --- todo.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/todo.sh b/todo.sh index a21356e..36ef038 100755 --- a/todo.sh +++ b/todo.sh @@ -474,6 +474,7 @@ TODOTXT_AUTO_ARCHIVE=${TODOTXT_AUTO_ARCHIVE:-1} TODOTXT_DATE_ON_ADD=${TODOTXT_DATE_ON_ADD:-0} TODOTXT_DEFAULT_ACTION=${TODOTXT_DEFAULT_ACTION:-} TODOTXT_SORT_COMMAND=${TODOTXT_SORT_COMMAND:-env LC_COLLATE=C sort -f -k2} +TODOTXT_DISABLE_FILTER=${TODOTXT_DISABLE_FILTER:-} TODOTXT_FINAL_FILTER=${TODOTXT_FINAL_FILTER:-cat} # Export all TODOTXT_* variables From 65d39319f13d36505ca22aceb47d05e157017516 Mon Sep 17 00:00:00 2001 From: Ingo Karkat Date: Fri, 30 Sep 2011 09:15:56 +0200 Subject: [PATCH 2/2] TODOTXT_DISABLE_FILTER missing from help text. Should be in there for consistency; corresponding option is -x. --- todo.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/todo.sh b/todo.sh index 36ef038..4669cf6 100755 --- a/todo.sh +++ b/todo.sh @@ -232,6 +232,7 @@ help() TODOTXT_PLAIN is same as option -p (1)/-c (0) TODOTXT_DATE_ON_ADD is same as option -t (1)/-T (0) TODOTXT_VERBOSE=1 is same as option -v + TODOTXT_DISABLE_FILTER=1 is same as option -x TODOTXT_DEFAULT_ACTION="" run this when called with no arguments TODOTXT_SORT_COMMAND="sort ..." customize list output TODOTXT_FINAL_FILTER="sed ..." customize list after color, P@+ hiding