Skip to content

Conversation

rixx
Copy link
Contributor

@rixx rixx commented Oct 11, 2019

SQL code will be formatted on page load, and can additionally be formatted by clicking the "Format SQL" button. Closes #136

@rixx rixx force-pushed the 136-sql-formatter branch 2 times, most recently from 5086220 to 1f88fe9 Compare October 11, 2019 17:14
SQL code will be formatted on page load, and can additionally
be formatted by clicking the "Format SQL" button. Closes simonw#136
@rixx rixx force-pushed the 136-sql-formatter branch from 1f88fe9 to b46195a Compare October 12, 2019 01:03
@simonw
Copy link
Owner

simonw commented Oct 14, 2019

This is a really nice implementation. I particularly like how you have the button as hidden until JavaScript runs and makes it visible.

https://github.com/simonw/datasette/pull/592/files#diff-0932659dded7aa3ce2d4c7badb187a9cR6-R8

@simonw simonw merged commit af2e6a5 into simonw:master Oct 14, 2019
@rixx rixx deleted the 136-sql-formatter branch October 14, 2019 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Reformat SQL" button next to SQL editor textarea
2 participants