-
Notifications
You must be signed in to change notification settings - Fork 250
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
Inputting descriptions with single or double comma? #657
Comments
w00ps, pressed ok too soon. Edited in the issue description above now :-) As for the double comma, I also noticed that this had some special handling in the activity editing window that seems a little fragile. It seems that the description is also the only part that is not serialized into the cmdline, though it is editable from the commandline using the double comma I think. Anyway, I wonder what the motivation for the double comma is. I guess it serves to distinguish a tag from the description? Maybe it allows starting the description with a hash, which is probably not otherwise possible? Would we mind? I haven't looked too closely at this yet, though, just wanted to get this dicussion in a separate issue in the right place :-) |
You do not think this through, IMO.
Reading the final PR #482 again, there was no opposition, |
@ederag The fact that I didn't provide further opposition to the double comma doesn't mean that I liked it. In fact, I agree that the decision could and should be revisited. It could be done without reducing the rock solidness of the parser. |
My €0.019 here. |
This PR reverts the use of a double comma to indicate the start of the description, a breaking change introduced in Hamster 3.0, back to the previous use of a single comma, as discussed in projecthamster#657. Likewise, the double comma needed before tags, in the case of descriptions containing the #hash pattern, is also reverted to the use of a single comma. This change requires two restrictions to the parsing rules. Firstly, no comma is allowed in the activity name (projecthamster#270). Secondly, tags may not be separated by a comma when entered on the commandline (ie. just use `#tag1 #tag2`, not `#tag1, #tag2`).
As a reference, here are the v3.0.0 rules (from the help):
Change between v2 and v3: The parser then became fully robust and general enough. |
This PR reverts the use of a double comma to indicate the start of the description, a breaking change introduced in Hamster 3.0, back to the previous use of a single comma, as discussed in projecthamster#657. Likewise, the double comma needed before tags, in the case of descriptions containing the #hash pattern, is also reverted to the use of a single comma. This change requires two restrictions to the parsing rules. Firstly, no comma is allowed in the activity name (projecthamster#270). Secondly, tags may not be separated by a comma when entered on the commandline (ie. just use `#tag1 #tag2`, not `#tag1, #tag2`).
This was resolved by merging #663. |
From projecthamster/hamster-shell-extension#334:
And from #656 (comment)
The text was updated successfully, but these errors were encountered: