You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Typing ngc and hitting Tab auto completes to ngResource instead of Angular controller code snippet. Everything goes back to normal if I disable this package.
Interesting. Can you try pressing ESC prior to pressing tab after you type ngc? The fix may be to undefine tab as a keybinding for autocomplete-plus:confirm, and redefine a different keybinding (like Enter).
The other option would be to redefine the keybinding for snippet expansion (which is also tab). unset! is what you want to use to undefine the default keybinding, whichever way you want to go.
Can you try pressing ESC prior to pressing tab after you type ngc? The fix may be to undefine tab as a keybinding for autocomplete-plus:confirm, and redefine a different keybinding (like Enter).
If I hit ESC then the ngResource hint goes away. I press TAB afterwords, then ngc is properly expanded to the Angular controller snippet. However, this is a cumbersome workaround and will not work in real life. Honestly, I don't get why ngResource shows up in the autocompletion when I type ngc. The later is not even a subset of ngResource word.
The other option would be to redefine the keybinding for snippet expansion (which is also tab). unset! is what you want to use to undefine the default keybinding, whichever way you want to go.
Sorry, but I have no clue where and how to do this. I do like to preserve TAB for the keyword expansion though.
Regarding ngc resolving to ngResource - this is likely an issue with the FuzzyProvider. What kind of file are you editing (i.e. what file extension / grammar are you using)?
Thanks Joe. But I'd prefer to keep tab for autocompletion. If I could just disable the ngResource poping up as match for ngc, then I should be OK. I edit Javascript files in AngularJS framework. ngResource is specific to AngularJS.
To enable strict matching, just enable the preference for it. Right now you have to manually set the preference, but it will be included in the preference UI in the next version of the package. This will prevent the fuzzy matching that allows ngResource to appear for the prefix ngc.
Activity
joefitzgerald commentedon Dec 16, 2014
Do you have autocomplete-snippets installed?
demisx commentedon Dec 16, 2014
I don't think so. Here is my
~/.atom/packages/:joefitzgerald commentedon Dec 16, 2014
Interesting. Can you try pressing
ESCprior to pressing tab after you typengc? The fix may be to undefinetabas a keybinding forautocomplete-plus:confirm, and redefine a different keybinding (likeEnter).joefitzgerald commentedon Dec 16, 2014
The other option would be to redefine the keybinding for snippet expansion (which is also
tab).unset!is what you want to use to undefine the default keybinding, whichever way you want to go.demisx commentedon Dec 17, 2014
If I hit ESC then the
ngResourcehint goes away. I press TAB afterwords, thenngcis properly expanded to the Angular controller snippet. However, this is a cumbersome workaround and will not work in real life. Honestly, I don't get whyngResourceshows up in the autocompletion when I typengc. The later is not even a subset ofngResourceword.Sorry, but I have no clue where and how to do this. I do like to preserve TAB for the keyword expansion though.
joefitzgerald commentedon Dec 17, 2014
@demisx:
Atom > Open Your Keymap, then paste the following text in it:You can swap out
enterfor whichever key or combination of keys you want.Update: New selector for the keybinding.
joefitzgerald commentedon Dec 17, 2014
Regarding
ngcresolving tongResource- this is likely an issue with the FuzzyProvider. What kind of file are you editing (i.e. what file extension / grammar are you using)?demisx commentedon Dec 17, 2014
Thanks Joe. But I'd prefer to keep
tabfor autocompletion. If I could just disable thengResourcepoping up as match forngc, then I should be OK. I edit Javascript files in AngularJS framework.ngResourceis specific to AngularJS.joefitzgerald commentedon Dec 31, 2014
This will be fixed in #184.
joefitzgerald commentedon Jan 24, 2015
To enable strict matching, just enable the preference for it. Right now you have to manually set the preference, but it will be included in the preference UI in the next version of the package. This will prevent the fuzzy matching that allows
ngResourceto appear for the prefixngc.demisx commentedon Jan 24, 2015
Sorry, where would I set this? I don't see this setting on the
Autocomplete Plussettings page.