dblab icon indicating copy to clipboard operation
dblab copied to clipboard

[FEATURE] Add query completion and syntax highlighting

Open Crandel opened this issue 3 years ago • 4 comments

Describe the solution you'd like It would be a good feature to complete via TAB SQL words and table names, columns, etc. while typing SQL queries in SQL Query panel

Describe alternatives you've considered There is a cli tool usql written in Go with syntax highlighting and code completion. You could check how this feature is implemented there.

Crandel avatar Jan 10 '23 16:01 Crandel

Nice suggestion!! It's a good idea, but a bit complex since the TUI library is the responsible to provide the editor. So, I have to figure out a way to leverage it. Fortunately, I forked that library, so I can implement something to extend the current editor's functionalities.

danvergara avatar Jan 10 '23 16:01 danvergara

Awesome! Thank you for quick response

Crandel avatar Jan 10 '23 16:01 Crandel

usql looks pretty cool!

rkgarcia avatar Jul 28 '23 19:07 rkgarcia

@rkgarcia The problem is that we need to embed the tool into the text editor and I hesitated to complete this because I'm planning to ditch the current TUI library in favor of Charm

danvergara avatar Jul 28 '23 19:07 danvergara