{"html_url": "https://github.com/simonw/datasette/issues/948#issuecomment-679333717", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/948", "id": 679333717, "node_id": "MDEyOklzc3VlQ29tbWVudDY3OTMzMzcxNw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-08-24T19:55:59Z", "updated_at": "2020-08-24T19:55:59Z", "author_association": "OWNER", "body": "CodeMirror 6 is in pre-release at the moment and is a complete rewrite. I'll stick with the 5.x series for now. https://github.com/codemirror/codemirror.next/", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 684925907, "label": "Upgrade CodeMirror"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/948#issuecomment-679355426", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/948", "id": 679355426, "node_id": "MDEyOklzc3VlQ29tbWVudDY3OTM1NTQyNg==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-08-24T20:43:07Z", "updated_at": "2020-08-24T20:43:07Z", "author_association": "OWNER", "body": "It would also be interesting to try out the SQL hint mode, which can autocomplete against tables and columns. This demo shows how to configure that: https://codemirror.net/mode/sql/", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 684925907, "label": "Upgrade CodeMirror"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/949#issuecomment-679363710", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/949", "id": 679363710, "node_id": "MDEyOklzc3VlQ29tbWVudDY3OTM2MzcxMA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-08-24T21:00:43Z", "updated_at": "2020-08-24T21:00:43Z", "author_association": "OWNER", "body": "I think this requires three extra files from https://github.com/codemirror/CodeMirror/tree/5.57.0/addon/hint\r\n\r\n- `show-hint.css`\r\n- `show-hint.js`\r\n- `sql-hint.js`\r\n\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 684961449, "label": "Try out CodeMirror SQL hints"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/949#issuecomment-679367931", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/949", "id": 679367931, "node_id": "MDEyOklzc3VlQ29tbWVudDY3OTM2NzkzMQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-08-24T21:09:50Z", "updated_at": "2020-08-24T21:09:50Z", "author_association": "OWNER", "body": "I'm attracted to this because of how good GraphiQL is for auto-completing queries. But I realize there's a problem here: GraphQL is designed to be autocomplete-friendly, but SQL is not. If you type `select ` and it doesn't know what's going in the `from` clause it can't give you good column autocomplete, for example.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 684961449, "label": "Try out CodeMirror SQL hints"}, "performed_via_github_app": null}