[TxMt] Improving SymbolPopup for LaTeX?

Charilaos Skiadas cskiadas at uchicago.edu
Fri Dec 2 22:38:16 UTC 2005


Hi Horst,
On Dec 2, 2005, at 11:14 AM, Horst Gutmann wrote:

> Hi :)
>
> Sorry, if this has already been this discussed, but I couldn't find
> anything related. I'm looking for a way to alter the appearance of  
> let's
> say subsection headers in the Symbol Popup. Normally these would  
> appear
> the same way as would sections. So I want to have subsections be
> slightly intended as for example class methods are in Python language
> bundle. My problem now is, I couldn't yet find out how this is  
> achieved
> there :) I'd really appreciate any help on this matter :)
>
It seems to me this is set by the symbolTransformation preference in  
the Preferences part of the Python Bundle. I tried to do something  
similar for LaTeX and add:

symbolTransformation = 's/^(\s*)\\section\{(.+)\}/$1 $2/; s/^(\s*)\ 
\subsection\{(.+)\}/$1 $2/';

in the "Symbol List" preference section of the bundle, but I couldn't  
get it to work. Maybe someone can explain to us how it is supposed to  
work, and why the above didn't work as expected?
I bet Allan has explained it in great detail somewhere in the blog  
and I've missed it. Off to do an in depth search...
> Best wishes,
> Horst "zeroK" Gutmann
> http://weblog.zerokspot.com

Haris






More information about the textmate mailing list