Hi,
I thought about that but I have files with different file extensions. I.e. 
.1android, .1androidae so I would have to map each old file name to new file 
name and rename, create tags, rename backwards and substitute with sed.

Instead, I have modified vim source. I have changed the tags generation so
    * any file can be processed, regardless its extension
    * tags containing spaces are allowed and extracted.

To do it, modify 
   
    ex_cmds.c

file and change
    in line 6446 (aprox), in the else branch add this
                // add english language when the extension is not recognize 
                lang[0] = 'e';
                lang[1] = 'n';

    in line 6532 (aprox), delete the line
                STRCAT(NameBuff, ext);

    in line 6641 (aprox), delete 
                *s == ' ' ||
         from the if branch inside the loop

make to compile. And now, there it is a vim with :helptags that processes any 
file in a directory and allows tags with spaces (*tag space*)

Regards.

El miércoles, 10 de julio de 2013 22:38:53 UTC+2, Charles Campbell  escribió:
> Javier Mediavilla Vegas wrote:
> 
> > Hi,
> 
> > Maybe I messup things.
> 
> > I want to extract tags in my documents. Tags are present in the format the 
> > vim help files are.
> 
> >
> 
> > Example
> 
> >         *tag1* *tag2*
> 
> >
> 
> > Here, there is two options to extract the tags and I have tested both of 
> > them.
> 
> > 1. :helptags. It is a vim built-in function to extract the tags but only 
> > works for ".txt" and ".??x" file extensions.
> 
> >     My files do not have that extension so I can't use it. I have searched 
> > for an option to change but I haven't found it.
> 
> >
> 
> You can do it with helptags, if you write some script.
> 
> 
> 
>    * move your help file to same YOURFILE.txt
> 
>    * apply helptags
> 
>    * move YOURFILE.txt back to YOURFILE.MAN
> 
>    * change the resulting <tags> file, using sed:   sed -e 
> 
> 's/\.txt/\.MAN/' tags
> 
> 
> 
> You could also do the substitute with vim itself if you'd prefer.
> 
> 
> 
> Regards,
> 
> C Campbell

-- 
-- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to