wisplike_sustainer
@wisplike_sustainer@suppo.fi
- Comment on Sanity checking an idea for editing yaml without wanting to throw my laptop out the window 7 months ago:
So, a new not-a-markup-language, only human readable and editable, and objectively better than its predecessor? Well, it’s all according to tradition. I believe YAML got its start the same way.
- Comment on Sanity checking an idea for editing yaml without wanting to throw my laptop out the window 7 months ago:
YAML to JSON is probably doable, JSON back to YAML not so much.
There are multiple ways to mark multiline strings in YAML. Then there are anchors, like bionicjoey mentioned. Also comments, YAML has them. You’d have to have some way to retain the extra information, if you want to make the full round trip.
Here’s an example:
def-db: &def-db # here be dragons login: admin passwd: nimda prod: db: *def-db desc: | I'm a teapot short and stout dev: db: <<: *def-db passwd: pass desc: "I'm a teapot\nshort and stout\n"
converted to JSON looks like this
{ "def-db": { "login": "admin", "passwd": "nimda" }, "prod": { "db": { "login": "admin", "passwd": "nimda" }, "desc": "I'm a teapot\nshort and stout\n" }, "dev": { "db": { "login": "admin", "passwd": "pass" }, "desc": "I'm a teapot\nshort and stout\n" } }
- Comment on They tried 1 year ago:
I Still don’t care about cookies? From its description:
In most cases, the add-on just blocks or hides cookie related pop-ups. When it’s needed for the website to work properly, it will automatically accept the cookie policy for you (sometimes it will accept all and sometimes only necessary cookie categories, depending on what’s easier to do).
- Comment on They tried 1 year ago:
Like I care. I’ve got a plugin that automatically accepts all cookies, and another one that deletes cookies when I leave the page.