[SVN] Revision 1104 (Defaults, Python)

Jeroen van der Ham jeroen at je-ju.net
Sat May 28 22:04:15 UTC 2005

- Small bugfix again to the Python Syntax
- Another small bugfix to the python command
- Small fix to the iPlastic Colorset.

- And finally something I always wanted to have in TextMate: proper completion for python modules, written purely in Python!
If you want to use it, add the following setting to the Python Settings with scope source.python:
completionCommand = '"${TM_SUPPORT_PATH}/bin/pythonCompletion.py" -w $TM_CURRENT_WORD -l $TM_CURRENT_LINE -c $TM_COLUMN_NUMBER -f $TM_FILEPATH';
   disableDefaultCompletion = 1; 
First one will be a bit slow, because it needs to compile, after that it should be faster.

It can only complete things that have the proper library name prefixed (so don't use "from library import *", but use "import library", which is the preferred way anyway AFAIK). And if it can't find the library, it will fall back on searching through the current (saved!) file.

U   trunk/Bundles/Defaults.tmbundle/info.plist
U   trunk/Bundles/Python.tmbundle/Commands/Python.plist
U   trunk/Bundles/Python.tmbundle/Syntaxes/Python.plist
U   trunk/Settings/iPlastic colors.tmScopeSettings
A   trunk/Support/bin/pythonCompletion.py
A   trunk/Support/bin/pythonCompletionTest.py

More information about the textmate-dev mailing list