[quote=“castles_made_of_sand”]I can’t imagine the index being very useful for auto-complete. It’d bee too noisy
I think I can remember Jon saying said he’d actually tried it and came to a like conclusion.
It would need intelligence
to know what this
is as part of "$this->my_model->method_name()"
The symbol indexing is done without much comprehension of the syntax. It’s just using the text mate grammars.
If only eh ? That sounds tricky[/quote]
I’d say it would save me a ton of time =) I think it should at least be an option in the preferences.
Check out this autocomplete addon for codeigniter: github.com/martinredola/sublime … ompletions. Does that file look complicated?
It’s a 45kb file, and provides all the codeigniter functions (which is a lot). Now, instead of typing out $this->session->userdata(‘item’);, I type: “thisessuser”. If you’re doing this all the time, you can see how much time it saves. A breakdown: typing “thi” brings up all functions related to “$this->”; typing “sess” bring up everything related to “$this->session->”, and “user” brings up $this->session->userdata(‘item’) or set_userdata(‘item’); Not having to type out all the arrows and only parts of the methods is fantastic–it’s pretty much instant. I only wish that my own custom methods could be indexed in such a manner. At least make it an option, you know? For me, that would make Sublime Text 3 a no-brainer. It would complete set it apart from any IDE or other text editor. Fuzzy autocomplete is why I use it in the first place =)