#txt #format #task

todo_txter

An implementation of the todo.txt format

2 releases

0.1.1 Mar 25, 2022
0.1.0 Mar 25, 2022

#48 in #txt

MIT license

8KB
84 lines

todo_txter

An implementation of the todo.txt format. Read the docs!


lib.rs:

An implementation of the todo.txt format.

The typical workflow is to read in a line from a todo file and call Task::new, perform some action on the [Task], and then to write it back using Task::to_string. For example:

let example = "Document this crate".to_string();
let mut task = todo_txter::Task::new(&example);

task.projects.push("rust".to_string());
task.is_complete = true;

assert_eq!(task.to_string(), "x Document this crate +rust".to_string());

Dependencies

~2.2–3MB
~54K SLoC