-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"url:" tags parsing is surprising #5
Comments
url:
tags
It’s a difficult bug to balance: if the parser accept the |
The spec states “Both key and value must consist of non-whitespace characters, which are not colons.”. So I guess the behavior in case of a tag that would contain two colons in the word is implementation-defined. As such, I think we should think about what we want to do here. In my mind, a tag must always be enclosed by spaces: there is no reason Which means The tag The first one is likely the closest to the todo.txt specification, but I'd argue use cases like putting URLs in tags trump strict specification compliance, and thus Adding a special-case for values beginning with a |
Nah, the problem is that there is already a workaround to prevent plain urls in the subject to be parsed as tags. This workaround simply disallows the |
Oh, I didn't even think there may already be a workaround for not detecting URLs as tags. Nevermind, then! |
It’s impossible to say if Here I would like to find a good workaround to let URL (mostly begining with I think we can to not follow standard for this case, and propose our reflexion for the v2. |
Good point indeed! I guess both options are good enough until the spec can catch up 😃 |
Tags whose value contain a colon confuse the parser. Granted, it's ruled out by the todo.txt spec but the
url:
tag it quite useful to me.Would it be possible to not follow the standard for this use-case ?
If the task is:
then parsing and printing the task out displays:
The text was updated successfully, but these errors were encountered: