nteract / design

:pencil2: Mocking up nteract UI and UX
BSD 3-Clause "New" or "Revised" License
3 stars 5 forks source link

Unified tab complete #7

Closed rgbkrk closed 8 years ago

rgbkrk commented 8 years ago
pd (TAB)
  -->

unified-tab-complete

Combines introspection and tab completion in a unified menu.

jdfreder commented 8 years ago

Is the idea that the up/down arrow would cycle through help? I like it!

rgbkrk commented 8 years ago

Is the idea that the up/down arrow would cycle through help? I like it!

Yup!

rgbkrk commented 8 years ago

The introspection bits come back as a mimebundle while the tab completion is a list.

Carreau commented 8 years ago

Sweet ! Can you add the line we are completing above ? I like something like the following where | is the cursor.

numpy.hitog #missing `s` on purpose

and the completion would actually show in bold what have been matched.

histogram(a, bins=10, range=None, normed=False, weights=None, density=None)

And would show (when possible) the function signature, even if it does not insert it. That would be useful for julia, where the "help" pard depend on the types of the arguments.

rgbkrk commented 8 years ago

and the completion would actually show in bold what have been matched.

Ooooh I like that a lot!

rgbkrk commented 8 years ago

Added the line in above, though not in the graphic itself.

Carreau commented 8 years ago

Extra: The completion mechanisme should be able to hint at a cursor position/selection after the completion is picked. Example, where | are the position of the anchor and head of the selection:

np.histogram(x, y, b<tab>) 
np.histogram(x, y, bins=|50|)
rgbkrk commented 8 years ago

Can we do that with the current message spec?

Carreau commented 8 years ago

Metadata Babe.

On Tue, Apr 19, 2016 at 9:16 PM, Kyle Kelley notifications@github.com wrote:

Can we do that with the current message spec?

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/nteract/mocks/pull/7#issuecomment-212074632

rgbkrk commented 8 years ago

Ah yeah, I want that too @Carreau.

Carreau commented 8 years ago

I just realized that now Chrome dev tool also completer from history with a chevron icon, which is damned useful:

screen shot 2016-05-06 at 11 16 52

rgbkrk commented 8 years ago

Oooh, yeah I saw that too. Chevron for "you previously used this at the console" and the others for active completions.