Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How to show custom taglist in window like :tag or :ptag
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
stevenfrog  
View profile  
 More options May 29 2012, 10:38 pm
From: stevenfrog <stevenf...@gmail.com>
Date: Tue, 29 May 2012 19:38:16 -0700 (PDT)
Local: Tues, May 29 2012 10:38 pm
Subject: How to show custom taglist in window like :tag or :ptag
I use taglist() to get a tag list. Then I did some filter, just leave
some useful one like this:

let tttlist = taglist("^List$")
let newtttlist = []
for item in tttlist
   if item['kind'] == 'i' || item['kind'] == 'c'
       call add(newtttlist, item)
   endif
endfor
echo newtttlist

But how to show them like :tag and :ptag in vim?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Fritz  
View profile  
 More options May 31 2012, 2:01 pm
From: Ben Fritz <fritzophre...@gmail.com>
Date: Thu, 31 May 2012 11:01:28 -0700 (PDT)
Local: Thurs, May 31 2012 2:01 pm
Subject: Re: How to show custom taglist in window like :tag or :ptag

On Tuesday, May 29, 2012 9:38:16 PM UTC-5, stevenfrog wrote:
> I use taglist() to get a tag list. Then I did some filter, just leave
> some useful one like this:

> let tttlist = taglist("^List$")
> let newtttlist = []
> for item in tttlist
>    if item['kind'] == 'i' || item['kind'] == 'c'
>        call add(newtttlist, item)
>    endif
> endfor
> echo newtttlist

> But how to show them like :tag and :ptag in vim?

I don't understand what you're trying to achieve.

Assuming your taglist contains tags named "List" your code will echo them to the screen. Which tag do you wish to jump to? If you have the tag name in a variable, like tag_i_want_to_jump_to, you can jump to it with something like:

  :exec "tag" tag_i_want_to_jump_to

If you want to do something else, please try to tell us SPECIFICALLY what you are trying to do, what you tried, what you expected to happen, and what happened instead.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »