diff options
author | Amjith Ramanujam <amjith@newrelic.com> | 2014-12-18 11:06:47 -0800 |
---|---|---|
committer | Amjith Ramanujam <amjith@newrelic.com> | 2014-12-18 11:06:47 -0800 |
commit | 6a9efde3e62808d5ee3664d04f83b97968b1a5dc (patch) | |
tree | b8f92a2c59e9d229e182e60d6327af79d0f91015 | |
parent | 6df2aa7d3face41d155115f4b394b96dbce367a7 (diff) |
Increase the height for completion menu.
-rw-r--r-- | TODO | 1 | ||||
-rwxr-xr-x | pgcli/main.py | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -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) diff --git a/pgcli/main.py b/pgcli/main.py index be2b449b..db1f9001 100755 --- a/pgcli/main.py +++ b/pgcli/main.py @@ -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()]) |