Skip to content

Instantly share code, notes, and snippets.

@chardskarth
Created January 9, 2022 14:54
Show Gist options
  • Select an option

  • Save chardskarth/0a49d4da8314ae9e8f972d257e25a4f0 to your computer and use it in GitHub Desktop.

Select an option

Save chardskarth/0a49d4da8314ae9e8f972d257e25a4f0 to your computer and use it in GitHub Desktop.

Revisions

  1. chardskarth revised this gist Jan 9, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion taskwarrior.zsh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@

    tprojectstasks() {
    tprojectstasks() { # get the first task for each project
    local tasks
    local taskfilter=$1

  2. chardskarth created this gist Jan 9, 2022.
    18 changes: 18 additions & 0 deletions taskwarrior.zsh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@

    tprojectstasks() {
    local tasks
    local taskfilter=$1

    if [ -z "$taskfilter" ]
    then
    tasks=$(task rc.list.all.projects=1 _projects)
    else
    tasks=$(task rc.list.all.projects=1 $taskfilter _projects)
    fi

    taskuuids=$(while IFS= read -r line; do
    task project:"$line" _id | head -n1
    done <<< "$tasks")

    task "$taskuuids" projectinweek
    }