Sublime Forum

word_separators and autocomplete

#1

I have the dash “-” in word_separators.

I have some code that looks like ident1-ident2.

ident1 and ident2 are both correctly identified as individual words.

However, the autocomplete popup still offers ident1-ident2 as a completion, ignoring the value in word_separators.

Is this correct behaviour? Is there some way to stop ident1-ident2 showing up in the autocomplete list?

1 Like

#2

I guess this is due to ST’s internal buffer completions logic not respecting the word_separators setting. I would say it is incorrect behavior, despite me finding it useful sometimes (probably I should consider removing - from my word_separators :wink: )

0 Likes