Home Download Buy Blog Forum Support

length-1 always auto completes?

length-1 always auto completes?

Postby textisgood on Wed May 02, 2012 5:35 pm

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-<tab> 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".
textisgood
 
Posts: 9
Joined: Fri Oct 23, 2009 4:36 pm

Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot], Yahoo [Bot] and 28 guests