Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tab-completion for function argument list #5510

Closed
tempestadept opened this issue Apr 3, 2014 · 9 comments · Fixed by #5512
Closed

Tab-completion for function argument list #5510

tempestadept opened this issue Apr 3, 2014 · 9 comments · Fixed by #5512
Milestone

Comments

@tempestadept
Copy link

In IPython 2.0 notebook, when I enter a function name and open parentheses, a pair of parentheses is inserted. If I pres tab, I get a dropdown list of all identifiers, magics, etc. in scope, while in previous versions this opened a tooltip with function arguments and docstring. If I wait a couple of seconds after entering parentheses without pressing anything, I get that tooltip. Buttons for expanding it still have tooltips telling about pressing tab 2 or 4 times, but that doesn't work.
Displaying docstring in response to tab inside empty parentheses makes much more sense than the list of all identifiers.

@jenshnielsen
Copy link
Contributor

The shortcut for tooltip has changed to shift-tab

@tempestadept
Copy link
Author

Oh, thank you. Then the tooltips for tooltip expanding buttons (kinda tautological) should be updated

@jenshnielsen
Copy link
Contributor

Yes I agree that is a bug.

takluyver added a commit to takluyver/ipython that referenced this issue Apr 3, 2014
@takluyver
Copy link
Member

The tooltip tooltips should be fixed in #5512 - let me know if I missed any.

@grandfatha
Copy link

Shift-tab does not work for me on OSX in 2.1

mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
@smcinerney
Copy link

smcinerney commented Nov 17, 2016

Shift-tab only works when you place the edit cursor inside or after the object. Not when it's at the start of the object. This gotcha is not documented anywhere...!

@gustafbstrom
Copy link

gustafbstrom commented Mar 25, 2020

I'd like to discuss the autocompletion issue from a different POI: when writing some function foo(... and then hit Tab, it now shows any function in the whole scope, while I'm just interested in the parameters of said function. I think it simply doesn't make any sense nor helps to see everything. I propose either fix that, or, if people likes this feature, that there should be an alternative. Possibly, that could be a setting or a different key combo, Tab-Shift or something.

What do you think?

@quatsch83
Copy link

I don't mind everything in the whole scope being shown, but it would be nice if the parameters were shown first instead of having everything in alphabetical order.

@gustafbstrom
Copy link

I agree with @quatsch83, that's even better. Will probably give the best of two worlds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants