-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
871 additions
and
741 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# todo for Node.js | ||
|
||
todo list manager inspired by [todo.txt](http://todotxt.org) using the [jsonl](http://jsonlines.org) format | ||
|
||
The Node.js version is compiled with [Opal](https://github.com/opal/opal) from the original [todo](https://github.com/gaborbata/todo) Ruby script, | ||
with some JavaScript-specific modifications, optimized with [Closure Compiler](https://github.com/google/closure-compiler) | ||
|
||
``` | ||
Usage: todo <command> <arguments> | ||
Commands: | ||
* add <text> add new task | ||
* start <tasknumber> [text] mark task as started, with optional note | ||
* done <tasknumber> [text] mark task as completed, with optional note | ||
* block <tasknumber> [text] mark task as blocked, with optional note | ||
* reset <tasknumber> [text] reset task to new state, with optional note | ||
* prio <tasknumber> [text] toggle high priority flag, with optional note | ||
* due <tasknumber> [date] set/unset due date (in YYYY-MM-DD format) | ||
* append <tasknumber> <text> append text to task title | ||
* rename <tasknumber> <text> rename task | ||
* del <tasknumber> delete task | ||
* note <tasknumber> <text> add note to task | ||
* delnote <tasknumber> delete all notes from task | ||
* list <regex> [regex...] list tasks (only active tasks by default) | ||
* show <tasknumber> show all task details | ||
* repl enter read-eval-print loop mode | ||
* cleanup <regex> [regex...] cleanup completed tasks by regex | ||
* help this help screen | ||
With list command the following pre-defined regex patterns can be also used: | ||
:active, :done, :blocked, :started, :new, :all, :today, :tomorrow, :next7days | ||
Due dates can be also added via tags in task title: "due:YYYY-MM-DD" | ||
Legend: | ||
new [ ], done [x], started [>], blocked [!], priority * | ||
``` | ||
|
||
`todo.jsonl` file stores the todo data which is saved into the `$HOME` folder of the current user. | ||
|
||
## How to install | ||
|
||
``` | ||
npm install -g todo-jsonl | ||
``` | ||
|
||
## Demo | ||
|
||
[todo JavaScript REPL](http://gaborbata.github.io/todo/) using browser local storage | ||
|
||
Screencast: | ||
|
||
![todo](https://raw.githubusercontent.com/gaborbata/todo/master/todo.gif) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,40 @@ | ||
{ | ||
"name": "todo-jsonl", | ||
"version": "0.1.29", | ||
"version": "0.1.30", | ||
"description": "todo list manager inspired by todo.txt using the jsonl format", | ||
"main": "todo.js", | ||
"bin": { | ||
"todo": "todo.js" | ||
}, | ||
"scripts": { | ||
"start": "node todo.js", | ||
"build": "npm run compile && npm run optimize && mv todo.min.js todo.js", | ||
"todo": "node todo.js", | ||
"build": "npm run compile && npm run optimize && echo #!/usr/bin/env node > todo.js && cat todo.min.js >> todo.js && rm todo.min.js", | ||
"compile": "opal --require date --require json --compile todo.js.rb | grep -v \"//# sourceMappingURL\" > todo.js", | ||
"optimize": "java -jar closure-compiler.jar --isolation_mode IIFE --warning_level QUIET --js todo.js --js_output_file todo.min.js" | ||
"optimize": "java -jar closure-compiler.jar --isolation_mode IIFE --warning_level QUIET --js todo.js --js_output_file todo.min.js", | ||
"test": "echo \"no test specified\" && exit 0" | ||
}, | ||
"engines": { | ||
"node": ">=8.10.0" | ||
}, | ||
"keywords": [ | ||
"cli", | ||
"todo", | ||
"command-line", | ||
"manager", | ||
"todolist", | ||
"todotxt", | ||
"todoapp", | ||
"jsonlines", | ||
"jsonl", | ||
"ruby", | ||
"opal" | ||
], | ||
"author": "Gabor Bata", | ||
"license": "MIT", | ||
"repository": "github:gaborbata/todo" | ||
"homepage": "https://github.com/gaborbata/todo", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/gaborbata/todo.git" | ||
} | ||
} |
Oops, something went wrong.