<div dir="ltr">Thanks <span style="font-size:12.8px;white-space:nowrap">Matthias.</span><div><span style="font-size:12.8px;white-space:nowrap"><br></span></div><div><span style="font-size:12.8px;white-space:nowrap">> </span><span style="font-size:12.8px">We need to write documentation about each of these, if you figure out </span><span style="font-size:12.8px">all the steps, PR would be welcommed.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Googling "Token.Menu.Completions" led me to this nice step by step </span><span style="font-size:12.8px">tutorial</span><span style="font-size:12.8px">: <a href="https://github.com/jonathanslenders/python-prompt-toolkit/tree/master/examples/tutorial">https://github.com/jonathanslenders/python-prompt-toolkit/tree/master/examples/tutorial</a> where it is explained how style can be applied<br></span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">I just opened "../IPython/terminal" and will try to change the style. Probably I should be looking inside "ptshell.py"...</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">I'm saying this as changing the Pygments highlighting style in configuration file, does not seem to change completion background</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><div>About documentation, I'll have a look at give it a try, then PR if I make something.</div><div><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">> </span><span style="font-size:12.8px">Do you want to open issue for each of these, we can try to improve </span><span style="font-size:12.8px">that during beta.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Done.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Cheers</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 6, 2016 at 7:08 PM, Matthias Bussonnier <span dir="ltr"><<a href="mailto:bussonniermatthias@gmail.com" target="_blank">bussonniermatthias@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Klo,<br>
<span class=""><br>
<br>
<br>
On Sun, Jun 5, 2016 at 2:12 PM, klo uo <<a href="mailto:klonuo@gmail.com">klonuo@gmail.com</a>> wrote:<br>
<br>
> - When I invoke completion, dropbox shows modestly with 5 items. Is it<br>
> possible to set number of items shown to preferred value?<br>
<br>
</span>yes:<br>
c.TerminalInteractiveShell.space_for_menu=<int><br>
<span class=""><br>
><br>
> - Considering many themed terminals, is it possible to set the color of<br>
> completion dropbox?<br>
<br>
</span>Likely Yes, but you need to define your custom style:<br>
by grepping through PTK source I can find the following:<br>
<br>
Token.Menu.Completions<br>
Token.Menu.Completions.Completion<br>
Token.Menu.Completions.Completion.Current<br>
Token.Menu.Completions.Meta<br>
Token.Menu.Completions.Meta.Current<br>
Token.Menu.Completions.MultiColumnMeta<br>
Token.Menu.Completions.ProgressBar<br>
Token.Menu.Completions.ProgressButton<br>
Token.Toolbar.Completions<br>
Token.Toolbar.Completions.Arrow<br>
Token.Toolbar.Completions.Completion<br>
Token.Toolbar.Completions.Completion.Current<br>
<br>
Then you define a Pygments Theme and it should "just work".<br>
<br>
We need to write documentation about each of these, if you figure out<br>
all the steps, PR would be welcommed.<br>
<span class=""><br>
<br>
><br>
> - About my experience with this completion interaction... After I invoke<br>
> completion:<br>
> - I cant close dropbox with Escape, instead I have to type something to hide<br>
> dropbox, or move cursor back<br>
<br>
</span>good point, do you wish to open an issue ?<br>
<span class=""><br>
> - Further I can close dropbox by typing a letter<br>
> - Pressing Tab, causes cursor to jumps in dropbox and navigates the same as<br>
> down-arrow, which seems to me like unnecessary duplicate key assignment, as<br>
> I would expect Tab to actually auto-complete<br>
<br>
</span>I think that using tab to cycle is common, but I might be wrong.<br>
<span class=""><br>
> - Once you jump inside dropbox you must accept some of suggested<br>
> completions, as your initial typing is irreversibly changed as you navigate<br>
> through completions<br>
> - Still inside dropbox, if you press Enter, what you have at the<br>
> command-line is immediately executed.<br>
<br>
</span>All these never bother me, but you are right.<br>
<span class=""><br>
<br>
<br>
> To compress above points, my shameless suggestion would be (more less<br>
> consistent with Notebook completions):<br>
> - Escape should close dropbox<br>
> - Typing while dropbox is open should just filter available completions,<br>
> instead close dropbox<br>
> - Simply navigating through dropbox should not automatically change my<br>
> command-line unless I press Tab on selected item (Enter should do the same<br>
> too, instead execution)<br>
><br>
<br>
</span>Do you want to open issue for each of these, we can try to improve<br>
that during beta.<br>
<span class=""><br>
<br>
<br>
><br>
> On a side note, I guess it is expected that current jupyter cant launch this<br>
> ipython console nor qtconsole.<br>
><br>
><br>
> Cheers<br>
<br>
<br>
</span>Yes this has been reported, we missed that because of the weird<br>
configuration the developers have.<br>
<br>
Thanks for your feedback.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="https://mail.scipy.org/mailman/listinfo/ipython-dev" rel="noreferrer" target="_blank">https://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
</div></div></blockquote></div><br></div>