diff --git a/ChangeLog b/ChangeLog index d16acd598..601c8cdf8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -30,6 +30,7 @@ Features + Possible to specify the date format when editing with 'dateformat.edit'. + Possible to specify the date format when showing information about a task with 'dateformat.info'. + + Bash script improvement (column names are now completed). Bugs + Applied patch for bug #919, so the holidays listed on the 'calendar' report @@ -84,6 +85,8 @@ Bugs that lack description or entry date (thanks to Nicholas Rabenau). + Fixed bug #1017, which exported invalid JSON when there were no tasks (thanks to Nicholas Rabenau). + + Fixed bug #962 that rename the bash completion script in prevision of future + 2.0 bash release. ------ old releases ------------------------------ diff --git a/scripts/bash/task_completion.sh b/scripts/bash/task.sh similarity index 86% rename from scripts/bash/task_completion.sh rename to scripts/bash/task.sh index b6d742504..152aac361 100644 --- a/scripts/bash/task_completion.sh +++ b/scripts/bash/task.sh @@ -59,6 +59,14 @@ _task_get_config() { task _config } +_task_offer_dependencies() { + COMPREPLY=( $(compgen -W "$(task _ids)" -- ${cur/*:/}) ) +} + +_task_offer_priorities() { + COMPREPLY=( $(compgen -W "L M H" -- ${cur/*:/}) ) +} + _task_offer_projects() { COMPREPLY=( $(compgen -W "$(task _projects)" -- ${cur/*:/}) ) } @@ -80,11 +88,19 @@ _task() # echo "prev='$prev'" # echo "prev2='$prev2'" - opts="$(task _commands) $(task _ids)" + opts="$(task _commands) $(task _ids) $(task _columns)" case "${prev}" in :) case "${prev2}" in + dep*) + _task_offer_dependencies + return 0 + ;; + pri*) + _task_offer_priorities + return 0 + ;; pro*) _task_offer_projects return 0 @@ -99,6 +115,14 @@ _task() ;; :) case "${prev}" in + dep*) + _task_offer_dependencies + return 0 + ;; + pri*) + _task_offer_priorities + return 0 + ;; pro*) _task_offer_projects return 0