[TxMt] Enter key, LaTeX Macros and commands

Allan Odgaard allan at macromates.com
Sat Jun 25 09:16:35 UTC 2005


On 25/06/2005, at 10.35, Berndt Farwer wrote:

> Firstly, the insertion of an \item is bound to -^-, the Enter key  
> or fn-Return, but all I ever get is a new line without the \item.

That's because the scope was also set. So only when the caret is in  
the scope set for the snippet, would enter do this -- I'm trying to  
establish the convention that enter continues the thing one is in,  
i.e. for line comments it continue the comment, for bullet points  
(using *, •, or ·) in plain text, it makes a new point on the next  
line etc.

As for LaTeX, the grammar rule to actually markup the scope for \item  
was temporarily disabled. I've enabled it in the grammar on the  
repository and updated the scope for the snippet. So this will work  
for 1.1b15, or if you do an svn checkout of the LaTeX bundle.

> The file LaTeXcomplete.pl exists in my LaTeX bundle, but I still  
> get the following error:
> bin/bash: line 1: /Macros/LaTeXcomplete.pl: No such file or directory
> Other commands, such as LaTeX Tidy work, even though they use the  
> same TM_BUNDLE_PATH variable.

It seems there's a problem with TM_BUNDLE_PATH used in commands  
called from macros (i.e. it's not setup to the macros bundle). I'll  
look into this later — thanks!

> [...] I have put symbolic links to the original files in my private  
> copy of the bundle, but this is not very elegant ...

No, unfortunately the better solution hasn't been found yet.

> Another minor  point is the lack of support for correct syntax  
> colouring of \verb!%! ... but this is not used too frequently ;-)

The grammars are fully editable! :) I have no idea what it does, but  
if Brad does, he most lkely will add support for it. Otherwise submit  
a test-case with some explanation.




More information about the textmate mailing list