Saturday, September 13, 2014

helptags

I want to create text files that are tagged and linked to each other just like vim help files (see http://vim.wikia.com/wiki/Browsing_programs_with_tags). I am not the first who wants to do this, see http://vim.wikia.com/wiki/Add_your_note_files_to_Vim_help or http://vim.1045645.n5.nabble.com/making-your-own-tagfile-td1191896.html or http://ctags.sourceforge.net/EXTENDING.html or http://pnotepad.org/docs/howto/tag_custom_languages/ but the two commonly accepted solutions don't work for me: (1) Learn how to define a new language in ctags, which is beyond my skill; and (2) just write your text files as part of vim help and compile using the :helptags command.

I know enough ctags that I can run a command like this in a directory with all my text files:

ctags -R --langdef=mynotes --langmap=mynotes:.mnt --regex-salsa=/\\*\(.+\)\\*/\1/ .

but --regex-salsa=/\\*\(.+\)\\*/\1/ is my concoction and doesn't really work. What does :helptags use? In emacs, it's really easy to find out what a command does. I don't know how to do this in vi. Under the hood, it must use a ctags command, but I can't find the source so that I can emulate it.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment