vostok4 wrote:Here is the full PHP function list with snippets for every function
Thanks! I'll take a look at integrating it
szameks wrote:Umm, I cant even trigger paragraph, p->tab gives me <option> (v2032)
This will be because it remembers your selection when using ctrl+space: what you're seeing is the expected behaviour if, at some point you have typed 'p', hit ctrl+space, and selected option. To revert this, do the same thing, and select p as the completion.
asmodai wrote:Also, my question before was actually different. Since I communicated the idea across badly, let me try again. Within the scope of the source file if you would allow all completion tokens it would be incredibly bloated. So depending on which #include files are included at the top I would like to limit the tokens. E.g. if #include <stdio.h> is included I want fclose() to be available in autocompletion, but if #include <stdio.h> is not present, I don't want to offer the possibility.
Ah, I see: I thought you were talking about including the header file names themselves.
This sort of functionality would have to be done by a plugin, although looking for stdio.h or cstdio isn't enough: you'd also have to search through all included files, recursively, in case any of those files happen to include stdio.h. It may make more sense to look at integrating something like http://cx4a.org/software/gccsense/
via a plugin, to have GCC to tell you what the completion options are.