Can I ask how exactly would this be best implemented?
For example I see a snippet for require:
All well and done, however how can I get the require snippet to only expand if the auto-completed valued is require()? Because the tabTrigger for all the array_* functions would be the full function, but then to get the benefit of the snippet the user would have to do:
array_w (expands to array_walk(|))
(now array_walk(|$array, $funcname)
I can provide the snippets without problem, but is there a way they will be smart about not requiring the + step?
Here is a PHP.sublime-completions that has been updated from php.net today, omitting Class references (as is in the original file) and with proper argument counts for every function: bitbucket.org/vostok4/sublimeph ... ompletions Feel free to include it in ST2 if you like, or if we figure out the snippets I'll provide all that code instead.