jmhobbs/jsTodoTxt

Support arbitrary extensions

Open

#10 opened on Sep 28, 2016

View on GitHub
 (6 comments) (0 reactions) (0 assignees)TypeScript (13 forks)github user discovery
EnhancementHacktoberfestHelp Wanted

Repository metrics

Stars
 (71 stars)
PR merge metrics
 (PR metrics pending)

Description

Rather than just having support for hidden and due extensions and adding additional extensions as they are requested, we could add an extensions data member that is an array/object using key:value pairs, where the key is the extension and the value is an array of values for that extension

So, example task dep:1 dep:2 h:1 would parse to

{ text: "example task"
  extensions: { dep: [ '1', '2' ]
                h: [ '1' ]
              }
}

It allows anyone using the jsTodoTxt to implement their own custom extensions without building in behavior that breaks the todo.txt standard (or having to do other people's work for them, if they want to use this to parse tasks and support their own custom extension).

Contributor guide