Are there any tricks how one could make Sublime Text's Python autocompletion aware off all eggs from buildout's [eggs] section
E.g. grab the same sys.path as in Plone's generated bin/instance
command and expose them to Sublime's auto-completion. You could easily auto-complete imports and stuff after this.
A preferable solution would be
Have special bin/sublime
command generated by buildout
This command would open src/
folder as Sublime text (project?) with all necessary environment variables and stuff set
Other solutions / ideas welcome.
Check http://pypi.python.org/pypi/corneti.recipes.codeintel/0.1.3
This is even easier than Martin's solution, I use it together with omelette with a part like this in my development.cfg buildout
[codeintel]
recipe = corneti.recipes.codeintel
eggs = ${buildout:eggs}
extra-paths =
${omelette:location}
I, like Martin Aspelli, use the SublimeCodeIntel plugin; together with collective.recipe.omelette this fills all my code-completion needs. Martin blogged about his setup, including a little script that sets up the CodeIntel configuration file for you:
http://www.martinaspeli.net/articles/sublime-text-2-for-zope-and-plone
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With