Skip to content

sideshowcoder/rtodotxt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rtodotxt

Work with todo.txt files from ruby.

Usage

Work with any todo.txt formatted file

require 'rtodotxt'

list = Rtodotxt::List.new(File.read('./todo.txt')) # load list
list.first # first todo
list.first.done! # mark first todo done
list.first.done? # => true

list.map(&:contexts).flatten.uniq # get all contexts
list.map(&:projects).flatten.uniq # get all projects

License

MIT

About

Ruby implementation of TodoTXT

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages