Sublime Forum

@ Overlay based completions

#1

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?

0 Likes

#2

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.

0 Likes

#3

I did this for Java with my plugin Display Functions (Java).

0 Likes

#4

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 github.com/BoundInCode/Display-Functions ) :smile:

0 Likes