/todo

Add new command line, create tasks from file list

Primary LanguageGoMIT LicenseMIT

todo

Simple todo app in cli for unix users !

Mac supported and new command for adding tasks

todo

Table of content

Description

This project is a fork of Taskbook written in Golang, the approach is more minimal only 5 flags (a to e) and no additionnal infos like priority, star, notes, date etc. This simple version is straight to the point you have a board of projects and each one contain tasks with their status, all this data is stored locally in a json file in your home directory (~/.todo.json)

Setup

Install Go if you don't have it.

  1. Clone this repo :
git clone github.com/the01rch/todo
  1. Go to the directory :
cd todo 
  1. Makefile line(9) -LINUX
@sudo cp todo /bin/

-M

@sudo cp todo /usr/local/bin
  1. Build and install it with :
sudo make install

Usage

Board view

Invoking todo without any options will display a board of your projects.

todo

Project view

To display the tasks of a specific project you need to specify the name with '@'.

todo @project

Add a Project

To add a new project your need to use the flag '-a' and the name in parenthesis.

todo -a "project_1"

Delete a Project

To delete a project you need to use the flag '-d' and the name with '@'.

todo -d @project_1

Edit a Project name

To edit a project name you need to use the flag '-e', new project name in parenthesis and the old project name with '@'.

todo -e "toto" @gogo

Add a Task

To add a task you need to use the flag '-a' with the task name in parenthesis and the project name.

todo -a "send email" @work

If you want to add all the files in the current directory as a task define the task as "all".

todo -a "all" @work

By default we do not include extensions, add -e

todo -a "all" -e @work

You can also exclude file extensions (.c, .h)

todo -a "all" -ex "c,h" @work

Or folders and extensions

todo -a "all" -ex "c" -d @work

Or all

todo -a "all" -d -e -ex "c" @work

Change Task status

In order to change the status of a particular task you need to specify the action, the ID of the task and the project related.

  1. flag '-b' for begin
todo -b 0 1 @project
  1. flag '-c' for check
todo -c 1 2 @project
  1. flag '-d' for delete
 todo -d 0 1 2 @project

Edit a Task name

To edit a task name is quite like editing a project name but you need to specify the ID of the task after the flag 'e'.

todo -e 0 "test app" @popo

License

MIT