Taskwarrior Tutorial

Taskwarrior Tutorial: Master Your Tasks from the Terminal

Taskwarrior is a powerful, flexible command-line task management tool that helps you track your todos efficiently. Here's how to get started:

Installation

Linux (Debian/Ubuntu):

sudo apt install taskwarrior

macOS:

brew install task

Windows (WSL):

# Use package manager in WSL distro

Basic Commands

Adding Tasks

# Simple task
task add "Buy groceries"

# Task with priority and due date
task add "Prepare meeting notes" priority:H due:tomorrow

# Task with project and tags
task add "Fix login bug" project:work +bug +urgent

Viewing Tasks

# Show all tasks
task list

# Show only pending tasks (default)
task

# Show tasks by project
task list project:work

# Show tasks by tag
task list +urgent

# Show completed tasks
task completed

Modifying Tasks

# Mark task as done
task 1 done

# Delete a task
task 2 delete

# Modify task attributes
task 3 modify priority:H due:today

# Annotate a task with notes
task 4 annotate "Additional research needed"

Advanced Features

Filters and Reports

# Tasks due today
task due:today

# High priority tasks
task priority:H

# Tasks due this week
task due.before:endofweek

# Tasks with specific words
task /report/

Custom Reports

Create custom reports in ~/.taskrc:

report.custom.columns=id,project,priority,due,description
report.custom.labels=ID,Project,P,Due,Description
report.custom.sort=due+

Urgency and Prioritization

Taskwarrior automatically calculates urgency scores:

task next  # Shows most urgent tasks

Recurring Tasks

# Daily task
task add "Daily standup" due:today recur:daily

# Weekly task
task add "Team meeting" recur:weekly

Syncing (with Taskserver)

# Initialize sync
task sync init

# Manual sync
task sync

Useful Configuration

Edit ~/.taskrc to customize:

# Color themes
color.theme=light

# Default command
defaultcommand=next

# Date format
dateformat=Y-M-D

Quick Reference

Command Description
task add "description" Add new task
task list Show tasks
task done Complete task
task modify Edit task
task delete Remove task
task projects List projects
task tags List tags
task calendar Monthly calendar view
task summary Task statistics

Pro Tips

  1. Tab completion: Taskwarrior supports tab completion for commands and attributes
  2. Shell aliases: Create shortcuts for frequent commands
  3. API access: Use Taskwarrior's JSON output for scripting
  4. Mobile apps: Sync with mobile clients using Taskserver

Taskwarrior has a steep learning curve but offers unparalleled flexibility for power users. Start with basic commands and gradually explore advanced features as you become more comfortable!

Comments

Popular posts from this blog

Terminal-Based Writing

Markdown Quick Tutorial

To install Jupyter Notebook on Ubuntu (Linux)