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

Automatically show code completion widget #1914

Closed
spyder-bot opened this issue Feb 17, 2015 · 10 comments · Fixed by #9839
Closed

Automatically show code completion widget #1914

spyder-bot opened this issue Feb 17, 2015 · 10 comments · Fixed by #9839

Comments

@spyder-bot
Copy link
Collaborator

From abhinav....@gmail.com on 2014-07-30T02:35:01Z

Spyder Version: 2.2.5
Python Version: 2.7.8
Qt Version : 4.8.6, PyQt4 (API v2) 4.11.1 on Linux
pyflakes >=0.5.0: 0.8.1 (OK)
pep8 >=0.6 : 1.5.7 (OK)
IPython >=0.13 : 2.1.0 (OK)
rope >=0.9.2 : 0.9.4 (OK)
sphinx >=0.6.6 : 1.2.2 (OK)
matplotlib >=1.0: 1.3.1 (OK)
sympy >=0.7.0 : 0.7.5 (OK)
pylint >=0.25 : 1.3.0 (OK)

Hello,
This is not a bug but a feature request. I would like to see some autocompletion features similar to that of Kate and KDevelop, where pressing a default number of characters triggers off options to complete the word automatically. This is useful in projects where there are a lot of variables, and where having long variable names makes the code easier to read.

Thanks,
Abhinav

Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1914

@spyder-bot
Copy link
Collaborator Author

From ccordoba12 on 2014-08-17T10:12:39Z

You can use Ctrl+Space (or Tab in 2.3.0+) to trigger code completion on the Editor and the Consoles too.

However, we'll see if autocompletion is worth the effort or not for 2.4.

Labels: Cat-Editor MS-v2.4

@spyder-bot
Copy link
Collaborator Author

From ccordoba12 on 2015-02-08T09:47:45Z

Steven, what do you think about this one? Should we move to show the widget automatically?

This can be very annoying, but at the same it can be very helpful to beginners because they don't know about Tab or Ctrl+Space (and currently we don't provide any hints about it :-)

Summary: Automatically show code completion widget when typing at least 3 characters (was: Feature request: Enable autocompletion of variable names)
Cc: steven.s...@gmail.com

@spyder-bot
Copy link
Collaborator Author

From ccordoba12 on 2015-02-08T09:49:52Z

issue #1606 has been merged into this issue.

@spyder-bot
Copy link
Collaborator Author

From steven.s...@gmail.com on 2015-02-08T10:31:46Z

Our current preference option "Automatic Code Completion" is not very descriptive, in that it auto-completes after a ".".
We could create two options: "Auto complete on dot" and "Auto complete while typing" (or something along those lines). I do agree that it should only take place after 3 or more characters, so as not to bog down the background threading.

@goanpeca
Copy link
Member

goanpeca commented Aug 8, 2015

If we are doing this, would it make sense to also add fuzzy matching, perhaps as an option?

@blink1073
Copy link
Contributor

That was the plan 😄

@ccordoba12
Copy link
Member

@blink1073, is this planned for beta2 or beta3?

@blink1073
Copy link
Contributor

Beta3.

@ccordoba12 ccordoba12 modified the milestones: v3.0, v3.0beta4 Jan 27, 2016
@ccordoba12 ccordoba12 modified the milestones: v3.0beta4, v3.1 Apr 25, 2016
@erwanp
Copy link

erwanp commented Oct 23, 2016

Hello! Is this feature still considered? It would be a nice addition

@ccordoba12 ccordoba12 modified the milestones: v3.2, v3.x Oct 24, 2016
@ccordoba12
Copy link
Member

Yep, for 3.2 :-)

@ccordoba12 ccordoba12 modified the milestones: v3.2, v3.3 Feb 14, 2017
@blink1073 blink1073 removed their assignment Mar 11, 2017
@ccordoba12 ccordoba12 modified the milestones: v4.0beta2, v4.0beta3 Dec 6, 2018
@ccordoba12 ccordoba12 modified the milestones: v4.0beta3, v4.0beta4, v4.0betaX Jun 10, 2019
@ccordoba12 ccordoba12 assigned andfoy and unassigned steff456 Jul 15, 2019
@ccordoba12 ccordoba12 changed the title Automatically show code completion widget when typing at least 3 characters Automatically show code completion widget Jul 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants