1
0
Fork 0

Increase the height for completion menu.

This commit is contained in:
Amjith Ramanujam 2014-12-18 11:06:47 -08:00
parent 6df2aa7d3f
commit 6a9efde3e6
2 changed files with 2 additions and 1 deletions

1
TODO
View File

@ -1,6 +1,7 @@
# vi: ft=vimwiki
* [o] Separate the column completions to be table specific. (SELECT, INSERT, UPDATE)
* [ ] Column completion for nested sql.
* [ ] Default host should not be set to localhost. Since it causes problems in IPv6 machines. Need to research this one further.
* [ ] Add JOIN to the list of keywords and provide proper autocompletion for it.
* [ ] Use a pager to display the output. (Check Click's document).
* [ ] Improve the smart completion for Insert statement. (Needs table specific columns)

View File

@ -55,7 +55,7 @@ def cli(database, user, password, host, port):
click.secho(e.message, err=True, fg='red')
exit(1)
layout = Layout(before_input=DefaultPrompt('%s> ' % pgexecute.dbname),
menus=[CompletionsMenu()],
menus=[CompletionsMenu(max_height=10)],
lexer=SqlLexer,
bottom_toolbars=[
PGToolbar()])