-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
config: replace the comma separator by new-line in ListAttribute #1626
Comments
OK, tagged for 7 while you get the newline stuff done (and revert whatever escaping support you need to revert). This is kind of a tracking issue, and we'll punt it to the next milestone whenever each step is done. |
@Exirel you're too kind 😄 don't worry I'm not offended you want to scrap this feature so soon 😆 ya gotta do what ya gotta do... your proposed plan definitely seems like the way to go anyway 👍 |
@HumorBaby So I take it you'll be eagerly awaiting your chance to refactor #1528 on top of the newline list parsing when it's done? 😁 (Not that I know if any changes will be required, yet.) |
I can barely contain myself! |
@dgw said:
Only doc(+docstring) changes will be needed anywhere there is a reference to/use of comma delimiting in |
@dgw issue with channel has been fixed and merged into master. All is left to do for Sopel 7 is the doc part. |
Doc part is done, I think. Checked off. |
All is done for Sopel 8. |
Sopel 7.x task list:
core.channels
(fixed by config: quote ListAttribute items when required #1690)Sopel 8.x and 9.x task list:
TL;DR: in Sopel 7.x, I want to detect
\n
to switch to a new mode that doesn't require a delimiter with escape character.Disclaimer: an escape mechanism was brought in for Sopel 7.x by #1460 to allow comma-separated values. I think it's a great achievement but, sadly, also something that I may want to remove entirely. I'm fully aware that this may mean having to throw off the hard work put in by @HumorBaby and I want to re-assert how much respect I've for his works, past and present.
Current state in Sopel 6.6.x
As of today's version of Sopel 6.6.x branch, this config file:
will be read as this:
Current state in Sopel master
In the master branch, since #1460, it is possible to escape the comma, so it would be like that:
which result in
eggs_safe
to be properly handled, but leavingbacons
still in a poor state:And now, if we want to throw regex pattern (that need to be escaped too), what do we have?
Sure thing, regex patterns are not the easiest things to read, but I found that the multi-lines version far more readable.
What's next? What's my plan?
If we take back the example for Sopel 6.6.x:
I want that output:
For Sopel 7.x I want to implement that so:
Then in Sopel 8.x, I want to add a "deprecation warning" on single-line expressions.
Then in Sopel 9.x, I want to remove single-line expressions handling (ie. no more split by comma).
The text was updated successfully, but these errors were encountered: