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

Implement case insensitive code completion and put 'self' as the first result on methods #1340

Open
spyder-bot opened this issue Feb 17, 2015 · 12 comments

Comments

@spyder-bot
Copy link
Collaborator

From ricardob...@gmail.com on 2013-04-04T10:27:56Z

A few weeks ago I started my first PyQt4 project. Aside from the GUI I need to use numpy and scipy. For plotting I went with matplotlib.

So my first thought was using eclipse with PyDev plugin. But I didn't quite like it, so I went back to use spyder which I found it to be faster and more lightweight than eclipse. But i keep missing two PyDev feature for code completion.

  1. Code completion in PyDev is NOT case sensitive. This very useful in packages like PyQt4 where most object's names, methods and atributtes are camelcased, or start with a capital letter. In spyder code completion is case-sensitive, which becomes annoying when don't exactly remember where the capital letters should be.
  2. When coding a class in PyDev is you type and 's' the very first suggestion is self, which become very handy in saving you a lot of key stokes.

I throw this two suggestion to the spyder community, and hope that someone thinks this is useful. Off course, this is just an enhancement with low priority.

Once again terrific job you guys are doing here.

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

@spyder-bot
Copy link
Collaborator Author

From ccordoba12 on 2013-04-11T11:05:06Z

I think both are sensible enhancement proposals. IPython also works as PyDev so it'd be good to match Spyder with it too.

I'll try to work on them after 2.2 is released.

Summary: Implement case insensitive code completion and put 'self' as the first result on methods (was: Case sensitivity for code completion and 'self')
Labels: -Type-Defect Type-Enh Cat-CodeCompletion MS-v2.2

@spyder-bot
Copy link
Collaborator Author

From jed.lud...@gmail.com on 2013-04-29T15:08:37Z

Labels: MS-v2.2.1

@spyder-bot
Copy link
Collaborator Author

From jed.lud...@gmail.com on 2013-04-29T15:10:06Z

Labels: -MS-v2.2

@spyder-bot
Copy link
Collaborator Author

From jed.lud...@gmail.com on 2013-04-30T05:12:46Z

Labels: -MS-v2.2.1 MS-v2.3

@spyder-bot
Copy link
Collaborator Author

From pierre.raybaut on 2013-05-11T06:00:34Z

Labels: -MS-v2.3 MS-v2.4

@goanpeca
Copy link
Member

@blink1073, you have been working with completion right? Tou think you could tackle this?

@blink1073
Copy link
Contributor

As is stands we are only invoking completion after a . or if the user hits TAB. This is related to #1914. I'd say we need to add another option called something like "autocomplete while typing" that is invoked for s at the start of a word and after three characters are typed.

@blink1073 blink1073 self-assigned this Feb 26, 2015
@goanpeca
Copy link
Member

Yes you are right, I misread. Still, can you take a look at it eventually?

@blink1073
Copy link
Contributor

Yep, self-assigned.

@ccordoba12 ccordoba12 modified the milestones: v3.1, v3.0 Dec 16, 2015
@blink1073 blink1073 removed their assignment Mar 11, 2017
@CAM-Gerlach
Copy link
Member

@ccordoba12 Will (or could) case-insensitive be implemented as part of (or as a followup to) #4751 ? This would be a big benefit to me as well, and one of the things (along with on the fly autocomplete, ala #3708 ) I really miss from Rstudio.

@ccordoba12 ccordoba12 modified the milestones: todo, v4.0beta2 Mar 17, 2018
@ccordoba12
Copy link
Member

I think this something different from #4751, but sure, we should fix it in Spyder 4.

@ccordoba12 ccordoba12 modified the milestones: v4.0beta2, v4.0beta3 Oct 12, 2018
@ccordoba12 ccordoba12 modified the milestones: v4.0beta3, v4.0beta4 May 18, 2019
@ccordoba12 ccordoba12 modified the milestones: v4.0betaX, v4.0beta4 Jun 17, 2019
@MuellerSeb
Copy link

At the moment code completion is case insensitive in Spyder 4.0.0b3. It would be nice having a switch to choose if completion should be case sensitive or not, since some people prefer the one over the other.
An annoying case comes up for me, when I want to auto-complete import starting with:

im<tab>

Then the first thing showing up, is not import but ImportError which could be prevented if auto-complete would be case-sensitive. Or did I miss something?
Cheers, Sebastian

@ccordoba12 ccordoba12 modified the milestones: v4.0beta4, v4.0beta5 Jul 20, 2019
@ccordoba12 ccordoba12 modified the milestones: v4.0beta5, 4.0.1 Aug 31, 2019
@ccordoba12 ccordoba12 modified the milestones: 4.1.0, future Dec 12, 2019
@goanpeca goanpeca removed this from the future milestone Feb 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants