-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add an option to prevent using Enter to select completions #12728
Comments
Hi @OverLordGoldDragon thanks for the feedback! I think probably having an option for such behavior could be worthy for some people but I'm not sure how complex could it be to implement, what do you guys think @spyder-ide/core-developers ? |
The easiest thing to do here is to give an option to have My only complaint about @OverLordGoldDragon is the difficulty in explaining the option in the preferences, while disabling enter is pretty easy(and covers the use case if you are into 'tab').
This could go along with disabling "tab" #12682. As an aside tab will start a completion and accept it but you can't accept the completion with ctrl+space or whatever you set the completion hotkey too. This would be quite important if you disabled 'tab' and 'enter' :-) |
@bcolsen How about: "If enabled, pressing Enter will newline instead of inserting code completion" (what else could Enter do?). And yes, I'd be fine with using Tab instead of Enter. If that doesn't suffice, you do have at least 202 characters to work with: |
We'll take a look at this for 4.2.0. |
Thanks for the explanation @ishipachev! We'll add an option to configure this in 4.2 for sure. |
@ccordoba12 I tried both the 4.2.5 and 5.0.1 release but can't find the option to disable enter to complete anywhere. I do like to use the auto complete feature with tab but it's driving me crazy that it is also auto completing when I want to return to the next line. I have been searching all over the Internet on how to disable it but can't find anything besides this issue thread, which mentions it should be added since 4.2? |
Sorry but we haven't had time to add an option for this. |
Any update on this? It has been one year since the last message. This is by far the most annoying issue on Spyder. |
Hey @RemiDav, sorry we haven't looked at this. But I'll schedule it so we can address it in one of our next versions. |
Want to support doing something here. Maybe shift + Enter does not complete and always gives a newline? I like only tab autofills best though. |
Is there any development of this issue? Would be nice to turn this off. |
@geograz, no, there hasn't been. We'll try to address it in Spyder 6, to be released in the second half of the year. |
This is still a major nuisance. Let's say I have a parameter that just says |
@DeltaMod, I understand your frustration and we'll try to implement this feature for Spyder 6.1.0, to be released during the second half of the year (6.0 will be released in a couple of months but we don't have time for that). In the meantime, you could disable completions on the fly to avoid that annoying behavior. You can do that by going to the menu |
Then it was 5.3.2, 5.3.3, 5.3.4 ... now 6.1.0 Realistically, will this ever be fixed? Or there will always be something with higher priority and it will keep being pushed back to 13.1.0 and further? |
Sorry for the multiple delays but this is a bit low priority for us because it doesn't affect the way we use Spyder. I develop Spyder with Spyder and haven't encountered this problem so far, but I understand it's annoying for users that evaluate code frequently (which is not my case). In addition, we didn't want to add new features to the Editor before doing a big refactoring that was planned for a long time (its purpose was to improve interoperability between plugins with a new API we created for Spyder 5). The good news is that that refactoring is finally done (see PR #21353, merged last week). But since we're wrapping things up for Spyder 6.0, we won't have time to address this for that release (as I said above). However, I'll make sure this lands in 6.1.0 because the conditions are finally there to make it a reality. |
Thanks a lot for the details. I'll remain optimistic about it then. |
When a typed method name is matched exactly with suggestion's, I have a "press Enter twice or click away or press space" overhead for any linter suggestion. I understand the linter suggestion also includes a docstring excerpt, or that a 'complete' method name can be another method name's substring, but my request can be handled as follows:
.stem
and Enter, I should newline (the Enter isn't consumed by the linter)The text was updated successfully, but these errors were encountered: