[TxMt] Re: LaTeX: Improving bibliographical label completion

Allan Odgaard mailinglist at textmate.org
Fri Nov 8 04:06:15 UTC 2013


On 6 Nov 2013, at 14:51, JairoB wrote:

> Is it too difficult to edit the LaTeX bundle so that the drop-down 
> menu that
> appears when I hit Command+Esc on \cite{} also includes both kinds of 
> labels
> (\bibitem and \myhyperbibitem)?

Looking at the bundle source, it seems the logic to collect labels is at 
https://github.com/textmate/latex.tmbundle/blob/master/Support/lib/LaTeXUtils.rb#L228

I didn’t write any of the code but it looks like you need to duplicate 
one of the scanner.extractors setup calls with a regular expression to 
match your \bititem lines.


More information about the textmate mailing list