Home Download Buy Blog Forum Support

@ Overlay based completions

@ Overlay based completions

Postby atomi on Thu May 03, 2012 5:06 am

I was thinking it'd be pretty neat if we could access a files functions listing but in completions.
I'm not sure how difficult this would be but at first pass I think this is something very feasible.

One possibility would be to check if the previous whole word matches exactly a file name but only after a period character to minimize polling.
I understand some of the problems would include multiple files having the same names and I'm sure many others.
But it wouldn't have to be perfect just enough to be useful.
Thoughts on this?
atomi
 
Posts: 342
Joined: Thu Jan 20, 2011 5:06 pm
Location: Los Angeles CA US

Re: @ Overlay based completions

Postby nick. on Thu May 03, 2012 1:20 pm

Doesn't the completions list already have function names? AFAIK it's populated with the words of the document.

Edit: Oh, I see what you mean now -- completions from across files. I haven't used it, but this is similar.
nick.
 
Posts: 266
Joined: Wed Jan 18, 2012 3:45 am

Re: @ Overlay based completions

Postby C0D312 on Thu May 03, 2012 1:31 pm

I did this for Java with my plugin Display Functions (Java).
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: @ Overlay based completions

Postby atomi on Thu May 03, 2012 3:01 pm

Awesome guys! I will definitely follow through with this and post results.

@COD312 I hope you don't mind but I'll likely end up using some of your code for this. Thanks for sharing ( btw for anyone passing through Java Completions Sublime Text https://github.com/BoundInCode/Display-Functions ) :)
atomi
 
Posts: 342
Joined: Thu Jan 20, 2011 5:06 pm
Location: Los Angeles CA US


Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 8 guests