* (exuberant) ctags and ConTeXt
@ 2011-12-18 23:08 Chris Lott
2011-12-19 5:13 ` Aditya Mahajan
0 siblings, 1 reply; 2+ messages in thread
From: Chris Lott @ 2011-12-18 23:08 UTC (permalink / raw)
To: Mailing list for ConTeXt users
Does anyone have a current working configuration for exuberant-ctags
(I'm using it in vim) to work with ConTeXt? The ctags FAQ shows how to
do it for LaTeX with regexes in a configuration file...
http://vim-taglist.sourceforge.net/extend.html
I can hack away at those, but in case anyone has done this already I
wouldn't have to reinvent that particular wheel.
c
--
Chris Lott <chris@chrislott.org>
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: (exuberant) ctags and ConTeXt
2011-12-18 23:08 (exuberant) ctags and ConTeXt Chris Lott
@ 2011-12-19 5:13 ` Aditya Mahajan
0 siblings, 0 replies; 2+ messages in thread
From: Aditya Mahajan @ 2011-12-19 5:13 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Sun, 18 Dec 2011, Chris Lott wrote:
> Does anyone have a current working configuration for exuberant-ctags
> (I'm using it in vim) to work with ConTeXt? The ctags FAQ shows how to
> do it for LaTeX with regexes in a configuration file...
> http://vim-taglist.sourceforge.net/extend.html
>
> I can hack away at those, but in case anyone has done this already I
> wouldn't have to reinvent that particular wheel.
I had (about 4 years ago) written a ctags module that redefined a low
level reference macro so that a ctags file was automatically written when
you compiled your document.
If I were to write it again, I will just write a mtx-ctags.lua file that
will read the filename.tuc file (all the info is there as a lua table) and
write it to a ctags file in the right format. You can then set the ctags
program in vim to `mtxrun --script ctags filename.tex`
Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-12-19 5:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-18 23:08 (exuberant) ctags and ConTeXt Chris Lott
2011-12-19 5:13 ` Aditya Mahajan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).