Sublime Forum

Autocomplete: Use suffix to seed autocomplete?

#1

Would it make sense to use the text to the right or left of the cursor to seed the autocomplete menu?

For instance, today I was changing:
ewokui.RowSizer to ewokui.AbstractFactoryJLayoutManagerSizer, so I put my cursor to the left of the S, hit ctrl+delete, and I was left with ewokui.Sizer. As I started typing though, the AbstractFactoryJLayoutManagerSizer wasn’t in the list right away. It might be useful to recognize any prefixes or suffixes. Also, when I found AbstractFactoryJLayoutManagerSizer, it inserted the entire text so I had AbstractFactorJLayoutManagerSizerSizer, so if it could know that it matched a suffix and not insert that text, that would be cool too.

Also, if it could read my mind that would be acceptable.

0 Likes

#2

No problem. Jon’s already on it. At the rate he’s going, just give it a couple of days…

0 Likes

#3

Actually…ibm.com/smarterplanet/us/en/ … index.html

0 Likes