[TxMt] Re: completion in LaTeX \ref{}

Charilaos Skiadas cskiadas at gmail.com
Sat Jul 19 07:57:25 UTC 2008


On Jul 18, 2008, at 1:31 PM, Kyle Johnson wrote:

> I am a heavy user of the completion key (escape) in LaTeX.  At
> present, when I press the escape key when I am inside a \ref{}
> command, it offers me the first completion that it finds in the list
> that it generates when I press the alt+escape key inside a \ref{}
> command. That list is alphabetical (so far as I can see). It would be
> more useful (for me) if instead it offered as its first choice the
> contents of the most recent  \label{} command, and then offered them
> in reverse order. (That is, if it behaved like it does when it is not
> within a \ref{} command.) Indeed, it would be more useful (I think) if
> the alt+esc key produced its offerings in reverse chronological order
> when pressed within \ref{}.
>
> Is it possible to manipulate the order in which escape offers up its
> completions?
>

The command uses its own scanner to scan through the document and  
included files and the code is already fairly complex. It is  
theoretically possible to do what you want, and anyone is welcome to  
try it out. It's certainly not an easy fix, as far as I can see.

> Many thanks,
> Kyle

Haris Skiadas
Department of Mathematics and Computer Science
Hanover College







More information about the textmate mailing list