Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Add complete for command #15

Open
Freed-Wu opened this issue Oct 27, 2020 · 1 comment
Open

[feature] Add complete for command #15

Freed-Wu opened this issue Oct 27, 2020 · 1 comment

Comments

@Freed-Wu
Copy link

such as type Tab after :Select ma it will automatically complete
max(?

Thanks!

@mechatroner
Copy link
Owner

Hi @Freed-Wu ,
I can try to add built-in Python keywords and available column names to generate the autocomplete, but this is

  1. Hard to do - I implemented column names autocomplete for VSCode version of the plugin, and it took me much more time than I originally expected.
  2. This autocomplete will not be capable of deep code analysis, i.e. if the user enters :Select random. and presses Tab there is no way that any relatively-simple autocomplete mechanism would be able to fetch the list of available methods from the random module. So the autocomplete would provide only very limited completion options therefore reducing its usefulness.

So I guess at some point I would try to implement a basic autocomplete: column names in dictionary/attribute forms + builtin functions and keywords from SQL and Python/JS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants