Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

taglist · Vim taglist (source browser) plugin

The Yahoo! Groups Product Blog

Check it out!

Group Information

? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

Advanced
Messages Help
Messages 398 - 427 of 487   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#398 From: "bazooka747" <bazooka747@...>
Date: Fri Sep 12, 2008 6:13 pm
Subject: Re: Tlist_Max_Submenu_Items - feature not working?
bazooka747
Send Email Send Email
 
Thanks for your reply.

--- In taglist@yahoogroups.com, Yegappan Lakshmanan <yegappan@...> >
Which version of the taglist plugin are you using? I am not able
> to reproduce this problem with the latest taglist plugin.
> The taglist plugin menu displays only Tlist_Max_Submenu_Items items
> in the sub-menus for each tag type.

I have
* version 4.5 of taglist
* Exuberant Ctags 5.7, Copyright (C)   Optional compiled features:
+wildcards, +regex
* vim version 7.0.237

This is in my .vimrc:
nnoremap <silent> <F10> :TlistToggle<CR>
let g:Tlist_Max_Submenu_Items=15
let g:Tlist_Show_One_File=0
let g:Tlist_Exit_OnlyWindow=1
let g:Tlist_Auto_Highlight_Tag=0
let g:Tlist_File_Fold_Auto_Close=1
let g:Tlist_Display_Tag_Scope=1


> Note that if there are 20 variable defined in a program and you
> have set Tlist_Max_Submenu_Items to 5, then you will see four
> sub-menus with 5 tags each for the 'Variable' tag type.
>

I definitely don't see that. I can run taglist on a file you may have,
e.g. /usr/share/pear/Zend/Date/DateObject.php, and I get don't see the
truncation you describe. So, I guess it is not from the file itself.
As far as I can tell, all other features work.

> Can you elaborate on the looping errors that you found?
I can't - my feeling from looking at the vim script code and all the
looping required, there might be scope for a looping error. But now it
seems there may some other condition.

Thanks for your help,
--Baz

#399 From: "salihdggummf" <salihdggummf@...>
Date: Sun Sep 28, 2008 2:36 am
Subject: automatically loading taglist session
salihdggummf
Send Email Send Email
 
I'm trying to set up my .vimrc to automatically load a Taglist session
files in my current working directory, but I can only get errors like
the plugin isn't loaded (though :TlistSessionLoad works fine by hand).
Can anyone show me where I'm going wrong and how to do this?

Thanks in advance for any help.

# .vimrc:
if filereadable(getcwd() . "/.taglist")
   TlistSessionLoad ".taglist"
endif

# console:
$ vim
Error detected while processing /home/username/.vimrc:
line   58:
E492: Not an editor command:   TlistSessionLoad ".taglist"
Press ENTER or type command to continue

#400 From: "Vincent Arnoux" <vincent.arnoux@...>
Date: Wed Oct 8, 2008 4:08 pm
Subject: Automatic TlistUpdate
vincent.arnoux@...
Send Email Send Email
 
Hello,
I am using taglist and I would like TlistUpdate to be run automatically. I wouldn't want to trigger it myself or having to exit and re-enter the buffer window. How could I achieve this?

Thanks,
Vincent

#401 From: "gee_forr" <gee.forr@...>
Date: Fri Oct 31, 2008 2:03 pm
Subject: Adding custom tags as bookmarks.
gee_forr
Send Email Send Email
 
Hi there,

I'm a long time TagList user (circa 2003), and it truly is my desert
island vim plugin.

Recently, I've come across a problem where I'm in a file with plenty
of variable declarations that span many many lines. This file also has
no subroutines or things that TagList would normally catch.

What I'd like to do is add a 'pseudo-tag' to essentially group these
variables together, so that when my muscle-memory kicks in and I
summon a taglist window, I can navigate through the file as normal.

Is this possible? How would I go about doing this? I would imagine
something within a comment. I've scoured the docs and the forum, but
can't find anything.

P.S - I'm using perl.

#402 From: Yegappan Lakshmanan <yegappan@...>
Date: Sat Nov 1, 2008 4:20 pm
Subject: Re: Adding custom tags as bookmarks.
yegappan
Send Email Send Email
 
Hi,

>
> Hi there,
>
> I'm a long time TagList user (circa 2003), and it truly is my desert
> island vim plugin.
>
> Recently, I've come across a problem where I'm in a file with plenty
> of variable declarations that span many many lines. This file also has
> no subroutines or things that TagList would normally catch.
>
> What I'd like to do is add a 'pseudo-tag' to essentially group these
> variables together, so that when my muscle-memory kicks in and I
> summon a taglist window, I can navigate through the file as normal.
>

I didn't fully understand the question. Do you want to see a single
entry in the taglist window for all the variables?  Or you don't want to
see the variables in the taglist window?

You can configure the taglist plugin to not display the tags for the
variables by setting the tlist_perl_settings variable in your .vimrc
file and excluding the ctags flags for perl variables.

As for displaying a pseudo tag for all the variables, it is not
supported by the taglist plugin currently.

- Yegappan

>
> Is this possible? How would I go about doing this? I would imagine
> something within a comment. I've scoured the docs and the forum, but
> can't find anything.
>
> P.S - I'm using perl.
>



#403 From: "Gabriel Fortuna" <gee.forr@...>
Date: Sun Nov 2, 2008 7:57 pm
Subject: RE: Adding custom tags as bookmarks.
gee_forr
Send Email Send Email
 

Hi Yegappan,

 

                Thanks for getting back to me J

 

From: Yegappan Lakshmanan [mailto:yegappan@...]

I didn't fully understand the question. Do you want to see a single
entry in the taglist window for all the variables?  Or you don't want to
see the variables in the taglist window?

              Right now, my taglist is configured to not show variables (this is the way I’ve configured it). It only shows subroutines, constants, and package names. The problem I’m having is that I’m working in a file (a config file of sorts), which has only variables. What I’d like to do, is add a some sort of tag ‘bookmark’, or special sequence of characters that taglist & ctags picks up as a tag... It’s probably better if I give you an example :)

# Special config section 01

my $foo = ‘abc’;

my $bar = 123;

# Special config section 02

my $baz = ‘xyz’;

my $qux = 456;

              I’d like to add a special sequence of characters to the comments sections, that taglist will recognize, and add to the tag window. So that I can jump to different sections of the file using a tool that I’m comfortable with. I don’t want to see the variables, I just want to jump to the start of the section of a specific set of variables in much the same way that I would with a subroutine using taglist.


#404 From: "Robert Mark Bram" <robertmarkbram@...>
Date: Thu Dec 11, 2008 1:12 pm
Subject: include new line chars in .*
robertmarkbram
Send Email Send Email
 
Hi All,

I am using using TagList for ANT build files as per
http://vim.wikia.com/wiki/Using_TagList_for_ANT_build_files

To pick up targets, I am using:
--regex-ant=/^[ \t]*<[ \t]*target.*name="([^<"&]+)".*>/\1/t,target/i

The problem is this will only pick up targets where the opening tag is
all on one line. For example, it will pick up
  <target name="clean" depends="init" description="...">
but not
  <target name="clean"
       depends="init"
       description="...">

Can anyone guide me as to how I can modify the ".*" in the above
expression to deal with new line chars too?

I posted this here too:
http://groups.google.com/group/vim_use/browse_thread/thread/73176642d613105b?q=%\
22robert+mark+bram%22+OR+robertmarkbram&pli=1&fwc=1

In response, I tried this, which didn't work:
--regex-ant=/^[ \t]*<[ \t]*target.*name="([^<"&]+)"\_.{-}>/\1/t,target/i

Thanks for any assistance!

Rob
:)

#405 From: Yegappan Lakshmanan <yegappan@...>
Date: Fri Dec 12, 2008 6:36 pm
Subject: Re: include new line chars in .*
yegappan
Send Email Send Email
 
Hello,

>
> Hi All,
>
> I am using using TagList for ANT build files as per
> http://vim.wikia. com/wiki/ Using_TagList_ for_ANT_build_ files
>
> To pick up targets, I am using:
> --regex-ant= /^[ \t]*<[ \t]*target.* name="([^ <"&]+)".* >/\1/t,target/ i
>
> The problem is this will only pick up targets where the opening tag is
> all on one line. For example, it will pick up
> <target name="clean" depends="init" description= "...">
> but not
> <target name="clean"
> depends="init"
> description= "...">
>
> Can anyone guide me as to how I can modify the ".*" in the above
> expression to deal with new line chars too?
>

You can try posting your question to the Exuberant ctags
user mailing list.

https://lists.sourceforge.net/lists/listinfo/ctags-users

- Yegappan

>
> I posted this here too:
> http://groups. google.com/ group/vim_ use/browse_ thread/thread/ 73176642d613105b ?q=%22robert+ mark+bram% 22+OR+robertmark bram&pli= 1&fwc=1
>
> In response, I tried this, which didn't work:
> --regex-ant= /^[ \t]*<[ \t]*target.* name="([^ <"&]+)"\_ .{-}>/\1/ t,target/ i
>
> Thanks for any assistance!
>



#406 From: "Robert Mark Bram" <robertmarkbram@...>
Date: Sat Dec 13, 2008 12:08 am
Subject: Re: include new line chars in .*
robertmarkbram
Send Email Send Email
 
Hi Yegappan,

> You can try posting your question to the Exuberant ctags
> user mailing list.
>
> https://lists.sourceforge.net/lists/listinfo/ctags-users

Thank you for this - I will keep it in mind. This time around, David
Fishburn in the Google newsgroup gave me the answer:

===
As an alterative, do you really need to scan up to the closing >?

Just remove the closing > in the pattern.
--langdef=ant
--langmap=ant:.xml
--regex-ant=/^[ \t]*<[ \t]*project.*name="([^"]+)".*/\1/p,project/i
--regex-ant=/^[ \t]*<[ \t]*target.*name="([^"]+)".*/\1/t,target/i
===

This works fine.

Rob
:)

#407 From: "julien_ea" <julien_ea@...>
Date: Sat Dec 13, 2008 10:02 am
Subject: Sort menu
julien_ea
Send Email Send Email
 
Hello,

I would like to know if it's possible to sort tags listed in the menu.
Currently, when I add a file with ":TlistAddFiles *.c", these files
don't appaer with an alphabetical order.

I read in the documentation the following:

************
You can regenerate the tags menu by selecting the 'Tags->Refresh menu'
entry.
You can sort the tags listed in the menu either by name or by order by
selecting the 'Tags->Sort menu by->Name/Order' menu entry.
************

I haven't this kind of 'Tags->Refresh menu' in my vim configuration.
Does it exist a command to activate this funtion ?

Many thanks for your help !

Julien.

#408 From: "tenlladoc" <tenlladoc@...>
Date: Wed Dec 17, 2008 5:41 pm
Subject: jump to class definition
tenlladoc
Send Email Send Email
 
Hi all:

I am using the taglist plugin to browse through C++ code. It would be
fantastic if I could jump from a class or variable to its definition.

One possible solution could be to search in the taglist for tags with
the name of the word under the cursor, select those that are variable
definitions or class definitions and present them in split window so
that I can select between them depending on the context.

Is one of this things posible. Maybe another plugin?

Thanks to all

Christian

#409 From: Tim Johnson <tim@...>
Date: Tue Jan 6, 2009 4:55 pm
Subject: Tlist_Show_One_File: Doesn't update for buffer changes
timjohnson12...
Send Email Send Email
 
Followed the following instructions:
Tlist_Show_One_File~
By default, the taglist plugin will display the tags defined in all the loaded
buffers in the taglist window. If you prefer to display the tags defined only
in the current buffer, then you can set the 'Tlist_Show_One_File' to 1. When
this variable is set to 1, as you switch between buffers, the taglist window
will be refreshed to display the tags for the current buffer and the tags for
the previous buffer will be removed.

	 let Tlist_Show_One_File = 1

However, when I switch between buffers (see above) the taglist window
is _not_ refreshed to display the tags in the current buffer, nor are the
tags for the previous buffer removed.

Updating does occur when I toggle tlist. What else do I need to do to
accomplish automatic updating with this configuration.

Using taglist with vim 7.10 on ubuntu 7.10.
thanks
tim

#410 From: "neilp85" <neilp85@...>
Date: Wed Feb 4, 2009 12:14 am
Subject: Bind Taglist to a single window
neilp85
Send Email Send Email
 
Is it possible to bind taglist to a single window so that it doesn't
update when you move to a different window. I have other plugins
(Source Explorer) that don't play nice with taglist. What happens is
that Source Explorer briefly switches windows to do a refresh of it's
context window and does and causes a very annoying flicker of the
taglist window

#411 From: "Diwaker Gupta" <diwaker@...>
Date: Thu Apr 2, 2009 5:45 pm
Subject: taglist doesn't work with dotted filetypes
diwakergupta
Send Email Send Email
 
From Vim's help (":he ft"):

When a dot appears in the value then this separates two filetype
names.  Example:
/* vim: set filetype=c.doxygen : */ ~
This will use the "c" filetype first, then the "doxygen" filetype.
This works both for filetype plugins and for syntax files.  More than
one dot may appear.

Unfortunately, taglist doesn't support dotted filetypes. For instance, I open a
C++ file and set the filetype to "c.cpp". This shouldn't affect the behavior of
taglist, but when I :TlistOpen, I don't see anything. With a filetype of cpp or
c alone, it works just fine.

Is this know/expected behavior?

Thanks for a wonderful plugin!

#412 From: Yegappan Lakshmanan <yegappan@...>
Date: Thu Apr 2, 2009 7:55 pm
Subject: Re: taglist doesn't work with dotted filetypes
yegappan
Send Email Send Email
 
Hello,

>
> From Vim's help (":he ft"):
>
> When a dot appears in the value then this separates two filetype
> names. Example:
>
> /* vim: set filetype=c.doxygen : */ ~
>
> This will use the "c" filetype first, then the "doxygen" filetype.  This
> works both for filetype plugins and for syntax files. More than one dot may
> appear.
>
> Unfortunately, taglist doesn't support dotted filetypes. For instance, I open
> a C++ file and set the filetype to "c.cpp". This shouldn't affect the
> behavior of taglist, but when I :TlistOpen, I don't see anything. With a
> filetype of cpp or c alone, it works just fine.
>
> Is this know/expected behavior?
>

The taglist plugin currently doesn't support dotted filetypes.
I will add this to the todo list.

- Yegappan



#413 From: "mail2sathiyamoorthy" <mail2sathiyamoorthy@...>
Date: Tue Apr 7, 2009 2:17 pm
Subject: question about how to do; go to a tag under some other file
mail2sathiya...
Send Email Send Email
 
Hi all,

This is my first mail to this group. I got admired of this tool, and found very
much useful.

I have a question that,
1. Am navigating C source files,
2. am able to go to the another file's function using ctags, and CTRL+]
3. Will i able to do the same under this taglist plugin.

Say i am in file A, and the cursor is in the function name of the function which
is in the file B. If i want to go to that function definition then i can do the
same in ctags by using CTRL+]. But how i can do it with taglist plugin. I did it
in multiple steps as, going to the taglist window, searching for the function
name, and then pressing enter.

Is there any single step to do this is there ?
Thanks for such a plugin.

#414 From: Yegappan Lakshmanan <yegappan@...>
Date: Thu Apr 9, 2009 10:11 pm
Subject: Re: question about how to do; go to a tag under some other file
yegappan
Send Email Send Email
 
Hi,

> Hi all,
>
> This is my first mail to this group. I got admired of this tool, and
> found very much useful.
>
> I have a question that,
> 1. Am navigating C source files,
> 2. am able to go to the another file's function using ctags, and CTRL+]
> 3. Will i able to do the same under this taglist plugin.
>
> Say i am in file A, and the cursor is in the function name of the
> function which is in the file B. If i want to go to that function
> definition then i can do the same in ctags by using CTRL+]. But how i
> can do it with taglist plugin. I did it in multiple steps as, going to
> the taglist window, searching for the function name, and then pressing
> enter.
>
> Is there any single step to do this is there ?
>

No. The taglist plugin doesn't support jumping to a tag from a file
using the Vim tag commands. The tag list plugin doesn't store the
output from exuberant ctags in a file that can be used by the Vim
tag commands.

- Yegappan



#415 From: "cedric_boudinet" <bouced@...>
Date: Thu Apr 16, 2009 4:10 pm
Subject: Tlist_Auto_Open and tabnew
cedric_boudinet
Send Email Send Email
 
Hi,
I've set Tlist_Auto_Open to 1 in my .vimrc file so that when I open a file with
gvim, the Tag list panel is automatically opened.This works fine.

But when I open another file with :tabnew, the panel doesn't show for the new
tab and I have to call :TlistToggle each time.
Is this a bug or is there a way to fix that in my .vimrc ?

thanks in advance
P.S. : I use Vim 7.2

#416 From: "Tim Johnson" <tim@...>
Date: Sat May 23, 2009 1:46 am
Subject: Tagging Javascript function literals
timjohnson12...
Send Email Send Email
 
At present taglist will only list javascript functions of the
form:
function func(){ }
  -- At least, so far as I can configure

It would be great if taglist would list javascript function
literals. I.E. of the form

funcname: function(){}
// OR
instance.funcname = function(){}

Can this be done?
thanks
tim

#417 From: Yegappan Lakshmanan <yegappan@...>
Date: Sat May 23, 2009 2:14 am
Subject: Re: Tagging Javascript function literals
yegappan
Send Email Send Email
 
Hello,

>
> At present taglist will only list javascript functions of the
> form:
> function func(){ }
> -- At least, so far as I can configure
>
> It would be great if taglist would list javascript function
> literals. I.E. of the form
>
> funcname: function(){}
> // OR
> instance.funcname = function(){}
>
> Can this be done?
>

The taglist plugin relies on exuberant ctags to parse a file and generate
the tags defined in that file.

If exuberant ctags supports generating tags for Javascript function literals,
then the taglist plugin can display them.

Try running exuberant ctags from the command line on the javascript file
and see whether the tags are generated for function literals.

The taglist plugin provides several configuration variables to control the
options that are passed to exuberant ctags.

- Yegappan



#418 From: Tim Johnson <tim@...>
Date: Sat May 23, 2009 2:58 am
Subject: Re: Tagging Javascript function literals
timjohnson12...
Send Email Send Email
 
Thanks for the quick reply:

On Friday 22 May 2009, Yegappan Lakshmanan wrote:
> > Can this be done?
>
> The taglist plugin relies on exuberant ctags to parse a file and generate
> the tags defined in that file.
>
> If exuberant ctags supports generating tags for Javascript function
> literals, then the taglist plugin can display them.
>
> Try running exuberant ctags from the command line on the javascript file
> and see whether the tags are generated for function literals.
>
> The taglist plugin provides several configuration variables to control the
> options that are passed to exuberant ctags.
  I probably don't fully understand your instructions, but I did the following:
  :!ctags %
  I did not see an output file produced.
  After invoking tlisttoggle a couple of times and pressing 'u' in
  the taglist window, I did not see any changes - I.E. no tagging
  yet.

  Could the regexes for the function literals be added to my .ctags
  file without clobbering the compiled-in regexes for the
  function funcname(){} form?

  many thanks
  tim

#419 From: Michael Henry <vim@...>
Date: Sat May 30, 2009 9:05 pm
Subject: Patch for taglist interaction with autocommands
vim@...
Send Email Send Email
 
All,

I've been using the following pair of autocommands
to keep Vim from scrolling the my buffers when I switch
them:

         if v:version >= 700
                 autocmd BufLeave * let b:winview = winsaveview()
                 autocmd BufEnter * if (exists('b:winview')) |
                             \call winrestview(b:winview) |
                             \endif
         endif

This has an undesirable interaction with the taglist plugin
with these settings:

let Tlist_GainFocus_On_ToggleOpen = 1
let Tlist_Close_On_Select = 1

After executing :TlistToggle, selecting a tag, and pressing
Enter, the expected behavior is to jump to the location for
that tag.  But the above autocommands undo the jump, leaving
the cursor at its original position.

Below is a patch to version 4.5 of taglist.vim that fixes this
behavior.  It wraps the :close command with taglist's
s:Tlist_Exe_Cmd_No_Acmds() function to prevent activation
of the autocommand.

It's not clear to me how many other places in taglist.vim might
have a similar interaction.  The :close command is used without
suppressing autocommands in several places that could
perhaps have similar unwanted effects.

--- taglist.vim    (revision 478)
+++ taglist.vim    (working copy)
@@ -3289,7 +3289,7 @@
          " tag is selected, close the taglist  window
          if g:Tlist_Close_On_Select
              call s:Tlist_Window_Goto_Window()
-            close
+            call s:Tlist_Exe_Cmd_No_Acmds('close')

              " Go back to the window displaying the selected file
              let wnum = bufwinnr(a:filename)

I've tested the problem and the patch with a clean configuration
of Vim 7.2.191, with the following ~/.vimrc and ~/.vim/ tree:

testuser@t61:~$ cat ~/.vimrc
filetype on
let Tlist_Close_On_Select = 1
let Tlist_GainFocus_On_ToggleOpen = 1
nmap <silent> <s-F8> :TlistToggle<CR>
if v:version >= 700
         autocmd BufLeave * let b:winview = winsaveview()
         autocmd BufEnter * if (exists('b:winview')) |
                     \call winrestview(b:winview) |
                     \endif
endif

testuser@t61:~$ find ~/.vim
/home/testuser/.vim
/home/testuser/.vim/doc
/home/testuser/.vim/doc/taglist.txt
/home/testuser/.vim/plugin
/home/testuser/.vim/plugin/taglist.vim
/home/testuser/.vim/plugin/taglist.vim.orig

Michael Henry

#420 From: felix hoo <felixhoo@...>
Date: Wed Jun 10, 2009 5:34 am
Subject: [Help] How to add tag scope beside tag name in user-defined language?
felixhoo@...
Send Email Send Email
 
Hi,

I try to have taglist work for a new language.  And I use the ctags
regex options to extend the support for the language. I have already
had tag name listed in the taglist windows. I wonder if it is possible
to show tag scope as well, like C++ - "Function [ Class ]". I think it
must have something to fiddle with in ctags. Any helps?

Felix

#421 From: "Robert Mark Bram" <robertmarkbram@...>
Date: Fri Jul 24, 2009 12:57 am
Subject: I see file names, but no tags
robertmarkbram
Send Email Send Email
 
Hi All,
I am 95% sure I have ctags configured correctly (Cygwin on Win XP) because I can
do this and see all the expected targets and properties:

Thu Jul 23 - 02:34 PM > ctags  -f - --format=2 --excmd=pattern --
fields=nks build.xml
base.dir        build.xml       /^      <property
name="base.dir"        location="." \/>$/;"   r       line:13
...
buildDeployable-other   build.xml       /^    <target
name="buildDeployable-other"$/;"  t       line:329
...

But when I open the xml file (or java file.. or any supported type) and run
:TlistToggle, I see the file name but no tags.

I have been going through the taglist FAQ and everything looks OK as far as I
can see.

"vim --version" shows 7.2,
"ctags --version" shows 5.8
":echo system(Tlist_Ctags_Cmd . ' --version')" shows Exuberant Ctags 5.8 ..
":filetype" shows filetype detection:ON  plugin:OFF  indent:OFF
":echo exists('*system')" shows 1
"ctags --list-languages" includes Ant and Java

I have my .ctags file in the right place (and there was no difference if I made
it ctags.cnf or copied .ctags and ctags.cnf to the same dir as build.xml and
launched vim build.xml from that dir..

Thu Jul 23 - 03:22 PM > cat $HOME/.ctags
--langmap=ant:.xml
--regex-ant=/^[ \t]*<[ \t]*project.*name="([^"]+)".*/\1/p,project/i
--regex-ant=/^[ \t]*<[ \t]*target.*name="([^"]+)".*/\1/t,target/i
--regex-ant=/^[ \t]*<[ \t]*property.*name="([^<"&]+)".*>/\1/r,property/i
--langdef=flexwiki
--langmap=flexwiki:.wiki
--regex-flexwiki=/^!!*(.*)/\1/t,Title/i
--regex-flexwiki=/TODO[ \t]*(.*)/\1/o,To Do/i
--langdef=idx
--langmap=idx:.idx
--regex-idx=/^([a-zA-Z0-9][a-zA-Z0-9 ]+)/\1/h,Heading/i

Any hints on what I may have missed?

Thanks for any advice!

Rob
:)

#422 From: "Robert Mark Bram" <robertmarkbram@...>
Date: Fri Jul 24, 2009 2:44 am
Subject: paths in tags file, exuberant ctags [win xp] on cygwin
robertmarkbram
Send Email Send Email
 
Hi All,

I am a bit confused. Using Exuberant Ctags I can generate tags files for Java
source, but the paths are generated as Windows paths, which vim on Cygwin
doesn't understand (of course).

How do I generate tags files that Cygwin will understand?

I installed Exuberant Ctags "Source and binary for Windows 98/NT/2000/XP" and
put in my Cygwin path..

I ran the tags commands (it only worked using Windows paths).
ctags -V -f 'c:\rob\cygHome\.tags' --language-force=java -R
'C:\rob\work\projects\nd\ford\tp07\rtb\src\java'
ctags -V -a -f 'c:\rob\cygHome\.tags' --language-force=java -R
'C:\rob\apps\java\jdksrc\jdk6.14'

I added this line to .vimrc:
autocmd FileType java set tags=~/.tags

I see the windows paths in .tags:
     ParseException
C:\rob\apps\java\jdksrc\jdk6.14\com\sun\jmx\snmp\IPAcl\ParseException.java /^ 
public ParseException(String message) {$/;" m class:ParseException

And the in vim on Cygwin, it can't find the files when I use control+};
     tag 1 of 8 or more
     File
"/c/rob/cygHome/C:\rob\apps\java\jdksrc\jdk6.14\com\sun\jmx\snmp\IPAcl\ParseExce\
ption.java" does not exist

I thought maybe I should use the ctags that comes with Cygwin.. but that does
nothing
Fri Jul 24 - 12:43 PM > /usr/bin/ctags -V -f ~/.tags --language-force=java -R
/rob/apps/java/jdksrc/jdk6.14
ctags (standalone 21.4.22)
Copyright (C) 2007 Free Software Foundation, Inc.
This program is distributed under the terms in ETAGS.README

Any assistance would be much appreciated!

Rob
:)

#423 From: "stcalamitas" <ursusah@...>
Date: Sun Jul 26, 2009 11:52 pm
Subject: problem working with matlab (.m) files under Cygwin/WinXP
stcalamitas
Send Email Send Email
 
Hi All-

I had problems to make taglist work with matlab (.m) files.

I'm running vim under Cygwin, with exuberant ctags version 5.8 compiled. They
work perfectly together with taglist plugin for all other supported file-types:
C++, java, vim...... except matlab.

Matlab files should be now supported by the newly released ctags ver. 5.8, and I
can verify this by running the following ctags command on a matlab source file,
say, "kuchange.m":
     ctags  -f - --format=2 --excmd=pattern --fields=nks kuchange.m
which generates output tags like:
     EnergyLevel  kuchange.m  /^function Em=EnergyLevel(lori,kori,aori,bori)$/;" 
f  line:83
     ......
     ......

The problem is, when I edit "kuchang.m" in vim, and load the taglist sidebar, no
tags are shown in the taglist sidebar, not even the filename "kuchange.m".

Also, in vim the ":set ft ?" command outputs "filetype=matlab". That means vim
does recognize its filetype as "matlab".

  I'm really confused with which step goes wrong. I would appreciate it if
anybody could give some hints.

--Hui

BTW: I came across a similar problem mentioned recently in this mailing list,
with only filenames shown in the taglist sidebar. This problem appeared when
using downloaded ctags win32-executable directly. It's gone after I downloaded
ctags source code and use the executable compiled under Cygwin.

#424 From: "Robert Mark Bram" <robertmarkbram@...>
Date: Mon Jul 27, 2009 1:23 am
Subject: Re: paths in tags file, exuberant ctags [win xp] on cygwin
robertmarkbram
Send Email Send Email
 
Got answer from vim_use Google Group:
http://groups.google.com/group/vim_use/browse_thread/thread/eb9892ad08345489

> The cygwin version of ctags produces filenames with slashes. If you
> use only relative paths, i.e. if you run the ctags command from the
> projects' top directory and save the tags file there, you get tags
> file that should be useable with windows gvim & cygwin. You can use
> multiple tags files in vim.

With this in mind, I re-ran my tags commands (from Cygwin) in the following way,
to ensure the tags files get created in the same directory that the source files
are within:
cd 'C:\rob\apps\java\jdksrc\jdk6.14'
ctags -V -a -f '.tags' --language-force=java -R
cd 'C:\rob\work\projects\nd\ford\tp07\rtb\src\java'
ctags -V -f '.tags' --language-force=java -R

And then added the following to my .vimrc, using Cygwin paths (symbolic links I
had made):
autocmd FileType java set
tags=/apps/java/jdksrc/jdk6.14/.tags,/wd/src/java/.tags

Now my tags work nicely - thank you very much!

Rob
:)

#425 From: "Robert Mark Bram" <robertmarkbram@...>
Date: Mon Jul 27, 2009 1:21 pm
Subject: Re: I see file names, but no tags
robertmarkbram
Send Email Send Email
 
*bump* to see if anyone might be able to help - it's driving me crazy; I have
tried on my work and home machines, downgraded to Exuberant Ctags 5.7.. nothing
works.

Rob
:)

--- In taglist@yahoogroups.com, "Robert Mark Bram" <robertmarkbram@...> wrote:
>
> Hi All,
> I am 95% sure I have ctags configured correctly (Cygwin on Win XP) because I
can do this and see all the expected targets and properties:
>
> Thu Jul 23 - 02:34 PM > ctags  -f - --format=2 --excmd=pattern --
> fields=nks build.xml
> base.dir        build.xml       /^      <property
> name="base.dir"        location="." \/>$/;"   r       line:13
> ...
> buildDeployable-other   build.xml       /^    <target
> name="buildDeployable-other"$/;"  t       line:329
> ...
>
> But when I open the xml file (or java file.. or any supported type) and run
:TlistToggle, I see the file name but no tags.
>
> I have been going through the taglist FAQ and everything looks OK as far as I
can see.
>
> "vim --version" shows 7.2,
> "ctags --version" shows 5.8
> ":echo system(Tlist_Ctags_Cmd . ' --version')" shows Exuberant Ctags 5.8 ..
> ":filetype" shows filetype detection:ON  plugin:OFF  indent:OFF
> ":echo exists('*system')" shows 1
> "ctags --list-languages" includes Ant and Java
>
> I have my .ctags file in the right place (and there was no difference if I
made it ctags.cnf or copied .ctags and ctags.cnf to the same dir as build.xml
and launched vim build.xml from that dir..
>
> Thu Jul 23 - 03:22 PM > cat $HOME/.ctags
> --langmap=ant:.xml
> --regex-ant=/^[ \t]*<[ \t]*project.*name="([^"]+)".*/\1/p,project/i
> --regex-ant=/^[ \t]*<[ \t]*target.*name="([^"]+)".*/\1/t,target/i
> --regex-ant=/^[ \t]*<[ \t]*property.*name="([^<"&]+)".*>/\1/r,property/i
> --langdef=flexwiki
> --langmap=flexwiki:.wiki
> --regex-flexwiki=/^!!*(.*)/\1/t,Title/i
> --regex-flexwiki=/TODO[ \t]*(.*)/\1/o,To Do/i
> --langdef=idx
> --langmap=idx:.idx
> --regex-idx=/^([a-zA-Z0-9][a-zA-Z0-9 ]+)/\1/h,Heading/i
>
> Any hints on what I may have missed?
>
> Thanks for any advice!
>
> Rob
> :)
>

#426 From: "Xiong, Hui" <ursusah@...>
Date: Mon Jul 27, 2009 3:01 pm
Subject: Re: Re: I see file names, but no tags
stcalamitas
Send Email Send Email
 
How did you get your Exuberant Ctags installed? I once came across the same problem (only file names, no tags shown in taglist sidebar), when I downloaded win32 binary from Ctags website and use it directly. The problem was gone after I compiled source code with cygin/gcc, and use the resulting binary instead.

On Mon, Jul 27, 2009 at 9:21 PM, Robert Mark Bram <robertmarkbram@...> wrote:
 

*bump* to see if anyone might be able to help - it's driving me crazy; I have tried on my work and home machines, downgraded to Exuberant Ctags 5.7.. nothing works.

Rob
:)

--- In taglist@yahoogroups.com, "Robert Mark Bram" <robertmarkbram@...> wrote:
>
> Hi All,
> I am 95% sure I have ctags configured correctly (Cygwin on Win XP) because I can do this and see all the expected targets and properties:
>
> Thu Jul 23 - 02:34 PM > ctags -f - --format=2 --excmd=pattern --
> fields=nks build.xml
> base.dir build.xml /^ <property
> name="base.dir" location="." \/>$/;" r line:13
> ...
> buildDeployable-other build.xml /^ <target
> name="buildDeployable-other"$/;" t line:329
> ...
>
> But when I open the xml file (or java file.. or any supported type) and run :TlistToggle, I see the file name but no tags.
>
> I have been going through the taglist FAQ and everything looks OK as far as I can see.
>
> "vim --version" shows 7.2,
> "ctags --version" shows 5.8
> ":echo system(Tlist_Ctags_Cmd . ' --version')" shows Exuberant Ctags 5.8 ..
> ":filetype" shows filetype detection:ON plugin:OFF indent:OFF
> ":echo exists('*system')" shows 1
> "ctags --list-languages" includes Ant and Java
>
> I have my .ctags file in the right place (and there was no difference if I made it ctags.cnf or copied .ctags and ctags.cnf to the same dir as build.xml and launched vim build.xml from that dir..
>
> Thu Jul 23 - 03:22 PM > cat $HOME/.ctags
> --langmap=ant:.xml
> --regex-ant=/^[ \t]*<[ \t]*project.*name="([^"]+)".*/\1/p,project/i
> --regex-ant=/^[ \t]*<[ \t]*target.*name="([^"]+)".*/\1/t,target/i
> --regex-ant=/^[ \t]*<[ \t]*property.*name="([^<"&]+)".*>/\1/r,property/i
> --langdef=flexwiki
> --langmap=flexwiki:.wiki
> --regex-flexwiki=/^!!*(.*)/\1/t,Title/i
> --regex-flexwiki=/TODO[ \t]*(.*)/\1/o,To Do/i
> --langdef=idx
> --langmap=idx:.idx
> --regex-idx=/^([a-zA-Z0-9][a-zA-Z0-9 ]+)/\1/h,Heading/i
>
> Any hints on what I may have missed?
>
> Thanks for any advice!
>
> Rob
> :)
>



#427 From: "Robert Mark Bram" <robertmarkbram@...>
Date: Tue Jul 28, 2009 4:04 am
Subject: Re: I see file names, but no tags
robertmarkbram
Send Email Send Email
 
Bugger, had to compile my own Exuberant Tags to make it work in command line
vim.

mkdir /apps/ctags58_fromCygwinCompiledSource
tar -xzf  /files/oginals/Cygwin/ctags/ctags_source_-5.8.tar.gz -C
/apps/ctags58_fromCygwinCompiledSource/
cd  /apps/ctags58_fromCygwinCompiledSource/
./configure && make install

Thanks!

--- In taglist@yahoogroups.com, "Xiong, Hui" <ursusah@...> wrote:
>
> How did you get your Exuberant Ctags installed? I once came across the same
> problem (only file names, no tags shown in taglist sidebar), when I
> downloaded win32 binary from Ctags website and use it directly. The problem
> was gone after I compiled source code with cygin/gcc, and use the resulting
> binary instead.
>
> On Mon, Jul 27, 2009 at 9:21 PM, Robert Mark Bram
> <robertmarkbram@...>wrote:
>
> >
> >
> > *bump* to see if anyone might be able to help - it's driving me crazy; I
> > have tried on my work and home machines, downgraded to Exuberant Ctags 5.7..
> > nothing works.
> >
> > Rob
> > :)
> >
> > --- In taglist@yahoogroups.com <taglist%40yahoogroups.com>, "Robert Mark
> > Bram" <robertmarkbram@> wrote:
> > >
> > > Hi All,
> > > I am 95% sure I have ctags configured correctly (Cygwin on Win XP)
> > because I can do this and see all the expected targets and properties:
> > >
> > > Thu Jul 23 - 02:34 PM > ctags -f - --format=2 --excmd=pattern --
> > > fields=nks build.xml
> > > base.dir build.xml /^ <property
> > > name="base.dir" location="." \/>$/;" r line:13
> > > ...
> > > buildDeployable-other build.xml /^ <target
> > > name="buildDeployable-other"$/;" t line:329
> > > ...
> > >
> > > But when I open the xml file (or java file.. or any supported type) and
> > run :TlistToggle, I see the file name but no tags.
> > >
> > > I have been going through the taglist FAQ and everything looks OK as far
> > as I can see.
> > >
> > > "vim --version" shows 7.2,
> > > "ctags --version" shows 5.8
> > > ":echo system(Tlist_Ctags_Cmd . ' --version')" shows Exuberant Ctags 5.8
> > ..
> > > ":filetype" shows filetype detection:ON plugin:OFF indent:OFF
> > > ":echo exists('*system')" shows 1
> > > "ctags --list-languages" includes Ant and Java
> > >
> > > I have my .ctags file in the right place (and there was no difference if
> > I made it ctags.cnf or copied .ctags and ctags.cnf to the same dir as
> > build.xml and launched vim build.xml from that dir..
> > >
> > > Thu Jul 23 - 03:22 PM > cat $HOME/.ctags
> > > --langmap=ant:.xml
> > > --regex-ant=/^[ \t]*<[ \t]*project.*name="([^"]+)".*/\1/p,project/i
> > > --regex-ant=/^[ \t]*<[ \t]*target.*name="([^"]+)".*/\1/t,target/i
> > > --regex-ant=/^[ \t]*<[ \t]*property.*name="([^<"&]+)".*>/\1/r,property/i
> > > --langdef=flexwiki
> > > --langmap=flexwiki:.wiki
> > > --regex-flexwiki=/^!!*(.*)/\1/t,Title/i
> > > --regex-flexwiki=/TODO[ \t]*(.*)/\1/o,To Do/i
> > > --langdef=idx
> > > --langmap=idx:.idx
> > > --regex-idx=/^([a-zA-Z0-9][a-zA-Z0-9 ]+)/\1/h,Heading/i
> > >
> > > Any hints on what I may have missed?
> > >
> > > Thanks for any advice!
> > >
> > > Rob
> > > :)
> > >
> >
> >
> >
>

Messages 398 - 427 of 487   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help