Sublime Forum

Length-1 always auto completes?

#1

I’ve created a very simple tab snippet bound simply to “l” to type out “console.log($0)” in JavaScript. Since it’s a snippet, tab completion should give it precedence over words in the buffer (as I understand it). But, if the word “length-1” is in the buffer, typing l- always inserts that instead of my snippet. Undoing and trying again will work the second time. Maybe this is simply a bug, since just having “length” in the buffer doesn’t have this problem.

Some details:

  • This is definitely related to auto complete, since giving a longer auto_complete_delay fixes it in the sense that the auto complete is now too slow, but I don’t want it that slow most of the time.

  • Since this is related to auto complete I set “auto_complete_commit_on_tab”: false, thinking that the tab would now only trigger the snippet and would not pick from the auto complete list, even if the wrong entry is highlighted. This didn’t work. Tab still completes “length-1”.

0 Likes