[TxMt] Symbol popup

Graeme Mathieson mathie at woss.name
Tue Nov 15 14:39:34 UTC 2005


On 14 Nov 2005, at 17:28, Allan Odgaard wrote:

> On 14/11/2005, at 11.19, Graeme Mathieson wrote:
>
>> I suspect you're going to say 'no, it's a limitation of the way  
>> the parsing is done', but would it be possible to collapse white  
>> space in the display of symbols?
>
> Or I could say RTFM :)

Oops, thanks for the pointer.  The preference I came up with (for  
Python) in the end was:

/* preferences */
{	showInSymbolList = 1;
	symbolTransformation = 's/^\s*def\s+(.*):$/ $1/; s/\s+/ /g; s/ *=.*? 
(,|\))/$1/g; s/^(.*\(.{30}).*?(.{30}\))/$1...$2/';
}

which removes default arguments, collapses white space, and truncates  
arguments to the first 30 and last 30 characters if it's longer than  
60 characters.  Works nicely for me...

-- 
Mail: mathie at woss.name | Web: http://woss.name/
AIM:  Math1e           | PGP: 1024D/D72F2737


-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://lists.macromates.com/textmate/attachments/20051115/f8f46d35/attachment.sig>


More information about the textmate mailing list