dbcli / mycli

A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting.
http://mycli.net
Other
11.42k stars 661 forks source link

auto completion for script.sql files #955

Closed ghost closed 3 years ago

ghost commented 3 years ago

For example, I open mycli on a shell and the cwd is /home/user/sql_script.

It would be nice to have auto completion on the script files in the pwd.

prompt> source "hit tab" and the a list of available scripts in the cwd is popping up a bit like the keywords for SQL.

You'd only harvest the *.sql files on runtime for that folder.

I hope I made sense :)

gfrlv commented 3 years ago

It should already work with the special command source image

ghost commented 3 years ago

ah! you are right, I was using it without the ./ , thanks for clarifying that one.