# `taskwarrior-tui`
[](https://github.com/kdheepak/taskwarrior-tui/actions?query=workflow%3ACI)
[](./LICENSE)
[](https://github.com/kdheepak/taskwarrior-tui/releases/latest)
[](https://github.com/kdheepak/taskwarrior-tui/releases/latest)
[](https://github.com/kdheepak/taskwarrior-tui)
[](https://coveralls.io/github/kdheepak/taskwarrior-tui)
A Terminal User Interface for [Taskwarrior](https://taskwarrior.org/).

## Installation
Unless otherwise specified, you will need to install `taskwarrior` first. See for more information.
**Manual** ( _Recommended_ ) [](https://github.com/kdheepak/taskwarrior-tui/releases/latest) [](https://github.com/kdheepak/taskwarrior-tui/releases/latest)
1. Download the tar.gz file for your OS from [the latest release](https://github.com/kdheepak/taskwarrior-tui/releases/latest).
2. Unzip the tar.gz file
3. Run with `./taskwarrior-tui`.
**Install from source** [](https://github.com/kdheepak/taskwarrior-tui)
```bash
git clone https://github.com/kdheepak/taskwarrior-tui.git
cd taskwarrior-tui
cargo build --release
```
**Using [`brew`](https://brew.sh/)** [](https://formulae.brew.sh/formula/taskwarrior-tui) [](https://formulae.brew.sh/formula/taskwarrior-tui)
This installs `task` from `homebrew` as well.
```bash
brew install taskwarrior-tui
```
**Installation for Arch Linux** [](https://archlinux.org/packages/community/x86_64/taskwarrior-tui/) [](https://aur.archlinux.org/packages/taskwarrior-tui-git/)
Use [pacman](https://wiki.archlinux.org/index.php/Pacman) to install it from the [community repository](https://archlinux.org/packages/community/x86_64/taskwarrior-tui/):
```bash
pacman -S taskwarrior-tui
```
Or use your favorite [AUR helper](https://wiki.archlinux.org/index.php/AUR_helpers) to download the [git](https://aur.archlinux.org/packages/taskwarrior-tui-git/) package maintained by [**@loki7990**](https://github.com/loki7990). For example:
```bash
yay -S taskwarrior-tui-git # build from source master
```
**Using [`snap`](https://snapcraft.io/)** [](https://snapcraft.io/taskwarrior-tui)
```bash
snap install taskwarrior-tui
```
**Using [`zdharma/zinit`](https://github.com/zdharma/zinit)** [](https://github.com/kdheepak/taskwarrior-tui/releases/latest)
Add the following to your `~/.zshrc`:
```zsh
zinit ice wait:2 lucid extract"" from"gh-r" as"command" mv"taskwarrior-tui* -> tt"
zinit load kdheepak/taskwarrior-tui
```
## Usage
_Tip_: Alias `tt` to `taskwarrior-tui`.
Add the following to your dotfiles (e.g. `~/.bashrc`, `~/.zshrc`):
```
alias tt="taskwarrior-tui"
```
### See it in action:
Click to expand!

### Easy to use interface:
Click to expand!
See [KEYBINDINGS.md](./KEYBINDINGS.md) for full list.

### Context switcher:
Click to expand!

### `readline`-like functionality:
Click to expand!
- `` : Go to beginning of the line
- `` : Go to end of the line
- `` : Delete from beginning of the line
- `` : Delete to end of the line
- `` : Delete previous word

### Calendar view
Click to expand!
`taskwarrior-tui` supports a Calendar view, which you can get to by hitting the `]` key:

This highlights the days for your due tasks in a calendar view.
You can configure the number of months in a row by changing the `uda.taskwarrior-tui.calendar.months-per-row` attribute in your `taskrc` file.
See the next section for more information.
You can switch back to the task view by hitting the `[` key.
### Configure `taskwarrior-tui` using `~/.taskrc`:
Click to expand!
`taskwarrior-tui` reads values from your `taskwarrior`'s `taskrc` file (default: `~/.taskrc`).

For example, `color.active` is used to style the active task.
If you would like to try it, open your `taskrc` file and change `color.active=white on blue`.
So `color.active` will take precedence over `color.overdue`. You can see what `color.active` is by running `task show color.active` in your favorite shell prompt.
The following color attributes are supported:
```plaintext
color.deleted
color.completed
color.active
color.overdue
color.scheduled
color.due.today
color.due
color.blocked
color.blocking
color.recurring
color.tagged
```
Other `taskwarrior-tui` configuration options are possible using the user defined attribute feature of `taskwarrior`.
All `taskwarrior-tui` specific configuration options will begin with `uda.taskwarrior-tui.`.
The following is a full list of all the options available and their default values implemented by `taskwarrior-tui` if not defined in your `taskrc` file.
```plaintext
uda.taskwarrior-tui.selection.indicator=•
uda.taskwarrior-tui.selection.bold=yes
uda.taskwarrior-tui.selection.italic=no
uda.taskwarrior-tui.selection.dim=no
uda.taskwarrior-tui.selection.blink=no
uda.taskwarrior-tui.calendar.months-per-row=4
uda.taskwarrior-tui.task-report.show-info=true
uda.taskwarrior-tui.task-report.looping=true
uda.taskwarrior-tui.style.context.active=black on rgb444
uda.taskwarrior-tui.style.calendar.title=black on rgb444
```
# Related
For a similar effort, check out `vit`:
- `vit`: