mtxr / SublimeText-SQLTools

SQLTools for Sublime Text 3
https://code.mteixeira.dev/SublimeText-SQLTools/
GNU General Public License v3.0
177 stars 40 forks source link

Plain Text Syntax Highlighting in results window #84

Closed heimer16 closed 7 years ago

heimer16 commented 7 years ago

I would propose making the results window default to plain text syntax highlighting for a couple of reasons. One, the sql syntax highlighting gets messed up when there are apostrophes in text fields, and secondly, (and this is part of a general performance issue I have with large files with any syntax highlighting) is that loading the window and scrolling and selecting are sluggish and choppy on large result sets. Swapping out the default syntax to plain text is much faster and more responsive.

Or, maybe turn this into a setting to be able to set or disable syntax highlighting in the results window

tkopets commented 7 years ago

Thanks for your feedback! Indeed, formatting of query execution results with SQL syntax highlighting is probably not the best idea, and in fact, I myself pretty often encounter the problems with apostrophes and other weird highlighting of output because of this.

However, I wouldn't simply throw away SQL highlighting in output completely, as it is still very helpful to see syntax highlighting when used in combination with other features (Table Description & Function Description). The experience may vary depending on RDBMS being used as different DB CLI outputs produce different results.

Given above I will make the changes as follows:

Thoughts/feedback on proposed solution are welcome.

tkopets commented 7 years ago

Made the changes as described above in 7fbad4db7552cc7071b91f8b29ed2c82173ccf29 and c624d3e4dd42b5587a79b59691acf041a70e9838.

tkopets commented 7 years ago

The changes will be available in next release.

tkopets commented 7 years ago

@heimer16 This improvement should be available in new release (just published). Let me know if that works as expected for you.

heimer16 commented 7 years ago

Seems to be working great! Thanks!