[TxMt] Enter key, LaTeX Macros and commands

Brad Miller bonelake at mac.com
Sat Jun 25 12:01:58 UTC 2005


The enter key (and fn-return on my powerbook) is working fine for me  
with the new scope rule Allan committed.  At least it adds the \item  
on the next line...  So I'm not sure what might be happening for  
you.  When I type ctrl-shift-T at the end of a \item xx x yyy foo  
bar    line the scope I see is:

text.latex
meta.environment.list.latex
meta.scope.item.latex

Is that what you see too?


Can you send me an example of \verb!%! in use?  I will add it to the  
test case file and look into updating the syntax rules to cover it.   
After more years than I will admit I have not seen that particular  
construct.  What does it mean?

Thanks,

Brad

On Jun 25, 2005, at 4:48 AM, Berndt Farwer wrote:


> Thanks, but ...
>
> On 25 Jun 2005, at 11:16 Uhr, Allan Odgaard wrote:
>
>
>
>> 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.
>>
>>
>
> ... after a svn checkout, I see the scope you mention, but still  
> get only new  
> lines.________________________________________________________________ 
> ______
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
>
>





More information about the textmate mailing list