vicoapp / vico

Mac Programmers Text Editor
http://www.vicoapp.com/
658 stars 89 forks source link

Snippets ruin autocomplete selection. #69

Open jordwalke opened 11 years ago

jordwalke commented 11 years ago

Open a new .js file:

Type the following text:

completeMe

They open up the "for" snippet (by typing "for" <TAB> and selecting the first menu option).

Begin typing completeMe.

You'll see the snippet window open and close repeatedly and never highlight completeMe as an option.

Whereas if you try the if snippet by typing "if" followed by <TAB>, you'll see the correct behavior. I believe it has to do with the fact that the for snippet "mirrors" the placeholder in multiple places in the snippet output.

Shadowfiend commented 11 years ago

Interesting. Yeah, that wouldn't be surprising. I have an experimental branch somewhere implementing multiple cursors and switching snippet placeholders to use them (way way not ready hehe), I idly wonder if that will help…