How to modify autocomplete suggestions?


#1

In Ruby, whenever I open a block with do, two suggestions appear.

The first option autocompletes to

do |variable|

end

and the second autocompletes to

do

end

When writing code, I usually want the first option. But when writing tests, I usually want the second option.

It’s habit for me to select the first option, which is annoying in tests because I have to backspace all the time. I’d like to change the order of the suggestions around, preferably based on file name (e.g. *_spec.rb). Has anyone done something like this before?

I only have core autocomplete packages are installed, no community packages. I assume it’s the autocomplete-plus package that needs to be modified.


#2

You might be interested in this Issue:


#3

Thanks, I’ve turned off the “Use Alternate Scoring” option. That’s good enough for me.