I’m working no an extension to provide a generic way to map relationships between alternate file, and the ability to jump between them.
I want to provide users with an ability to provide their configuration as a JSON object, but the text box keeps automatically replacing straight quotes ("
) with curly quotes (”
).
This causes the JSON parsing to fail.
A game of “Spot the error!”
I’ve noticed the same issue with the Toggler extension settings too.
My current fallback is to try and sanitize the string before parsing, or provide a “Fix config” command button in the preferences, but this doesn’t seem like the best UX.
I can see a solution being provided in one of several ways:
- disable smart quotes
- have a JSON preference type, ideally with indentation and syntax highlighting
- a configurable table/matrix presence that we can use to create a GUI. In my case file extension, and respective alternate files to look up.
- something else
Thanks for considering this!