danvergara / dblab

The database client every command line junkie deserves.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[FEATURE] Add query completion and syntax highlighting

Crandel opened this issue · 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.

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.

Awesome! Thank you for quick response

usql looks pretty cool!

@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