A Sublime Text 2 / SublimeCodeIntel auto-completion data generator for buildout
Project description
This recipe generates a configuration file for SublimeCodeIntel, a SublimeText plugin .
To use it, add a codeintel configuration section to your buildout.cfg file and the corresponding part:
[buildout]
parts =
django
codeintel
...
[codeintel]
recipe = corneti.recipes.codeintel
eggs = ${django:eggs}
extra-paths =
${django:location}
${django:extra-paths}
Setting .codeintel folder
SublimeCodeIntel will pick up auto-completion information from .codeintel folder from your Sublime Text project root.
By default, this recipe generates the folder in the buildout root. You can specify optional codeintel-path if you want to generate .codeintel in some other location.
Example how to create CodeIntel information inside src/ folder. Usually src/ is used for all Python eggs you are currently developing yourself i.e. essentially all of your project codebase:
[codeintel]
recipe = corneti.recipes.codeintel
eggs = ${instance:eggs}
target = ${buildout:directory}/src/.codeintel
This will generate file src/.codeintel/config which will list all your eggs used by [instance] in your buildout.cfg.
Now you can open your src/ folder as project in Sublime with perfect auto-completion support:
subl src
… or just open src/ folder using File > Open folder.
Tips
Reset auto-completion by choosing SublimeCodeIntel: Reset in command browser (CMD + SHIFT + P) [OSX].
Force auto-completion dialog: CMD + P [OSX].
Credits
Based on the mkcodeintel script available in optilude’s SublimeTextMisc repository.
codeintel-path option and much better documentation by Mikko Ohtamaa .
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file corneti.recipes.codeintel-0.2.tar.gz.
File metadata
- Download URL: corneti.recipes.codeintel-0.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a823a3943b87d9c1d8856baf887faa021ba9242a9e4db3e182b5fa14f408867
|
|
| MD5 |
39ce973eb1ed7de8e14c9c698aa26d7a
|
|
| BLAKE2b-256 |
a350f478c0c0a63906427417c46e24fc626529b3dadb56e32d1e73f751040594
|