Sublime Forum

Jedi - unwanted auto completion sometimes

#1

Hello,

I use Jedi as auto completion. I’m very happy with it, but sometimes it does things I don’t want. Here’s an example. I entered the following code:

if number % 2 == 0:

Now if I press enter after the colon, I just want to jump to the next line. Jedi or maybe Sublime itself, but then writes a 2. If I delete the 2 afterwards and press enter again, the cursor jumps to the next line. What do I have to change so that I jump to the next line the first time I press enter?

Best regards
gospat

0 Likes

#2

I didn’t use it (I use LSP + LSP-pyright, which should be superior) but may be you are a victim of https://github.com/srusskih/SublimeJEDI/issues/194

0 Likes

#3

I think you’re right, but I don’t quite know which part I need to adjust yet. I’ll do a little research and maybe it will help.

0 Likes

#4

I don’t know if it works 100% yet, but I’ve probably found a solution for myself. I set the “auto_complete_commit_on_tab” option to true. Auto completion generally no longer uses enter to confirm, but rather tab. I like it better anyway because it makes it easier to distinguish between auto complete and a new line.

0 Likes