todotxt / todo.txt-cli

☑️ A simple and extensible shell script for managing your todo.txt file.
http://todotxt.org
GNU General Public License v3.0
5.57k stars 714 forks source link

Start task with @context #149

Closed bjorngi closed 7 years ago

bjorngi commented 9 years ago

According to the specifications of todo.txt format all context must be preceded with a space, but if you start a task with a context, does this rule apply to this? Or is @work call This Dude about+theAwesomeProject a valid task?

inkarkat commented 9 years ago

The specification is quite clear, but at least the todo.txt-cli implementation also supports projects and contexts at the very beginning of a line. Note: If you automatically add a date, this becomes a non-issue.

bjorngi commented 9 years ago

But the spescification does not require a date. So I think the specification should be revised to make this issue clear. Not that it's a big issue, but for people developing on the todo.txt spec.

kalafut commented 9 years ago

I agree with @bjorngi that this part of the spec is unclear. To have in the same document an a example of a valid task: @GroceryStore Eskimo pies, and shortly thereafter: "A context is preceded by a single space and an @ sign", isn't clear.

While we're at it, why have the "a single space" requirement? This seems to go against the overarching "completely unstructured" goal of the format.

My    @work task  

should be parsed as "@work" being a context, IMHO.

I think the spec for projects and contexts should be reworded to something like: "The first character of a context is: @. This first character of a project is: +. Projects and contexts are preceded by whitespace, or appear at the start of the line."

karbassi commented 7 years ago

This issue was moved to todotxt/todotxt#3