-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some flexibility around completions #5
Comments
+1! Maatch in the middle like YouCompleteMe, CommandT or CtrlP (vim plugins) are very usefull :) |
This is definitely on the radar. Probably eventually there'll be a 'simple' completion service like the one that currently exists, and a 'full' one where you get every possible completion and then some, and the plug-in has to do a bit more work to actually filter them itself. I have not gotten around to this yet. |
The
|
Is this something I can add to a |
You'd have to implement it in your editor plugin, or as a tern plugin providing a custom completion query type. |
The rules for Tern completions are fine for many cases but I would like the flexibility to implement a different set of completion rules:
One way to implement this would be just to return all of the completions along with the found prefix and let the editor match and sort. There, of course, may a better way.
One addition piece of information on identifiers that would be useful is the relative level of the scope where the identifier was found. Say, zero, would be the scope at the cursor, and one would be the next outer scope and so on.
What are your thoughts on how to best provide this flexibility?
Thanks,
-Darrell Loverin
The text was updated successfully, but these errors were encountered: