9

In Kate text editor, one can auto complete using either the Tab or the Enter key.
I find auto-completion with the Enter key disruptive, because often you really do mean what you say, and want to go to a new line. Who knew.
How can I disable only the Enter key auto-completion without removing the Tab auto-completion?

Lilylakshi
  • 736
  • 7
  • 19
Roman
  • 8,826
  • 10
  • 63
  • 103
  • See https://forum.kde.org/viewtopic.php?f=218&t=111286 and https://bugs.kde.org/show_bug.cgi?id=316413 – sashoalm Oct 27 '15 at 07:06
  • @sashoalm My autocompletion works fine. Its just that I'd like to remove the Enter key binding to do so – Roman Oct 27 '15 at 08:00

3 Answers3

5

You CAN'T do that.

From https://bugs.kde.org/show_bug.cgi?id=316413:

Sorry, but auto-complete really works ok the way it is. If we alter that behavior, we will get many more reports about that than with the current way.

And then:

You can deactivate the auto completion in the settings. Then you can invoke it manually. If that doesn't help, then yes, Kate is perhaps not the best choice, sorry.

So it seems, from the developers' own mouth, that Enter can't be turned off. You can turn off autocomplete as a whole, or if you don't like that, you can find another text editor. Or you can edit the source code yourself, after all it's Open Source.

The developers like it as it is, and have no intention of making the behavior configurable.

sashoalm
  • 75,001
  • 122
  • 434
  • 781
4

I've seen a workaround in this article that works for me:

go to: Settings->Configure Keyboard Shortcuts. Then change the Action: "Insert Smart Newline to Enter instead of Shift+Enter.

Jaime
  • 65
  • 5
0

I am using Kate Version 21.12.3 with "french menu" I have selected "no auto completion" that way:

open a configuration window with  :  CTRL + MAJ + ,   
on the left,  select the third item (modification in french)
then select the fourth item ( complétion automatique in french)
then uncheck "complétion automatique"

click "apply"  and "OK"
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Mar 17 '23 at 03:37