xo / usql

Universal command-line interface for SQL databases
MIT License
8.88k stars 347 forks source link

feature request: tab completion on `\d` commands #328

Closed mmisiewicz closed 2 years ago

mmisiewicz commented 2 years ago

It would be a big boost to productivity if tab completion worked on \d commands. In particular \d <table> is something that gets used all the time and it's a bit tricky to remember all the table names!

For comparison, psql does this, so that would be the desired functionality to emulate.

nineinchnick commented 2 years ago

What database are you using?

nineinchnick commented 2 years ago

I checked and indeed we don't complete tables for these commands. But we do in select from statements, so it should be fairly easy to add.

mmisiewicz commented 2 years ago

I use both Postgres and Snowflake and haven't seen auto-completion working for either of those drivers, confirming your analysis!