LoginSignup
3
2

More than 3 years have passed since last update.

Taskwarriorでコンソールからタスク管理する

Last updated at Posted at 2019-03-03

taskwarriorというコマンドラインのタスク管理ツールが便利だったので知見を共有します。

モチベーション

タスク管理ツールとして

  • trello
  • asana
  • github projects

これらを個人で使っていましたが、運用のモチベーションが続きませんでした。

そこでブラウザや専用アプリを開くという作業が壁になっていたのではないかと思い立ち、コンソール主体のタスク管理ツールを試すことにしました。

使い方

基本的にtask <filter> <command> <modification>で操作します。
コマンドやらシンタックスやらは公式ドキュメントに載っていますが、自分のユースケースから使い方を紹介します。

ユースケース

下記三つのプロジェクトにタスクを分けるとします。

カテゴリ 識別子
仕事 work
プライベート private
その他 other

そして、以下のフローでタスクを消化していきます。

  1. カテゴリにタスクを追加
  2. タスクに優先度を付与することで
  3. やるべきタスクを優先度順に実行して消化

ハンズオン

まずはタスクを追加します

add-task.sh
task project:work add "tune monitoring tools"
task project:private add "read a tech blog"
task project:private add "write a article"
task project:other add "select todo-list"
task project:other add "try taskwarrior"

taskコマンドで現状のタスクを確認できます。

kent-no-Macbook-Pro:/Users/kent$ task
[task next]

ID Age  Project Description           Urg
 1 2min work    tune monitoring tools    1
 2 2min private read a tech blog           1
 3 2min private write a article          1
 4 2min other   select todo-list         1
 5 1min other   try taskwarrior          1

5 tasks

<filter>を使ってタスクを絞り込んで表示できます

kent-no-Macbook-Pro:/Users/kent$ task project:private
[task next ( project:private )]

ID Age  Project Description     Urg
 2 6min private read a tech blog     1
 3 5min private write a article    1

2 tasks

タスクの優先度を上げてみます
タスクの優先度や期限はtask <filter> modify <modification>で変更できます
タスクの優先度を設定してみましょう

task 3 modify priority:H

すると、タスクの優先度が変更されます

kent-no-Macbook-Pro:/Users/kent$ task project:private
[task next ( project:private )]

ID Age   P Project Description     Urg
 3 12min H private write a article    7
 2 12min   private read a tech blog     1

タスクの期限を設定するのは下記です

task 3 modify  due:2017-01-31

タスクを実行中にステータス変更しましょう。
先ほどの優先度を上げたタスクを実行中に変更します

kent-no-Macbook-Pro:/Users/kent$ task 3 start
Starting task 3 'write a article'.
Started 1 task.

実行中のタスクはtask <filter> activeで確認できます

kent-no-Macbook-Pro:/Users/kent$ task active

ID Started    Active Age   P Project Description
 3 2019-03-03 10s    27min H private write a article

1 task

タスクのステータスを完了にするには、task <filter> doneを実行します。

kent-no-Macbook-Pro:/Users/kent$ task 3 done
Completed task 3 'write a article'.
Completed 1 task.
The project 'private' has changed.  Project 'private' is 50% complete (1 of 2 tasks remaining).

実行完了のタスクはtask <filter> completedで確認します。

kent-no-Macbook-Pro:/Users/kent$ task project:private completed

ID UUID     Created    Completed  Age   P Project Description
 - cd2399c3 2019-03-03 2019-03-03 32min H private write a article

1 task

まとめ

今まで色々なtodo管理ツールを使って結局続かなかった自分ですが、コンソールで気軽に管理するtaskwarriorであれば末長くタスクを管理できそうです。

続かなかったらまた別途別のツールを考えることにします。

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2