Skip to content

Commit

Permalink
Increase the height for completion menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
Amjith Ramanujam committed Dec 18, 2014
1 parent 6df2aa7 commit 6a9efde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions TODO
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pgcli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()])
Expand Down

0 comments on commit 6a9efde

Please sign in to comment.