-
-
Notifications
You must be signed in to change notification settings - Fork 488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fuzzy tag finder - search function for a specific keyboard inserted tag ( :TagBarFuzzyFindTag ) #771
Comments
That sounds like it could be a good idea. I don't know that we'd be able to do any kind of a popup type window or auto-fill based on a partial search pattern, but basic searching could be possible. One thing to note on this, If the tagbar status line is not being used, and the tagbar window has never been opened for a file, then that file has not yet been examined. So if this is implemented it will have to take that into account to force an update on the file before searching for any tags. Would you expect the syntax to be something like this?
And would you want to leave the tagbar window closed if it was closed? Or would you want to have it open the tagbar window and jump to the tag in the tagbar window? Or are you expecting it to jump to the tag in the file window? |
this would be good :TagbarSearch <search-pattern> write
a function such as but just for tags that appear in the tagbar (or the current file) the principle is this:
i would like to see something like this and like vs code's outline search. i know that i have big expectations. |
Honestly this is done using fzf.vim, generate the tags file and use :Tags under the project and search for your function. I use it currently. |
@alexzanderr The process you are describing doesn't sound quite like a match for tagbar. Tagbar is using the output of ctags to parse known tags in a file, but not the spots where those tags may be used. In you example, doing a search for Now for partial matches, yes I could see how you could have multiple tags partially matching the search pattern. However this sounds a lot like just using the normal vim search in the tagbar window itself. The process you describe could easily be done in the tagbar window itself.
Much of this can be done using shortcuts as well or configuration options to help control it. There is a @daedroza I'm not aware of any Telegram group for tagbar's features. I've only ever been involved with it here on github. |
i dont know if there is a function for that.
i read the docs, i didnt find any related content.
im requesting a feature.
please add a function callable from command-line called
:TagBarFuzzyFindTag
function behaviour:
search
for a tag in current opened file<enter>
is pressed, it shouldjump
in the file at thattag's location
close
just like vs code
Ctrl+P
+@
outline search:it would be great if it would have a beautiful animation like this one.
OR
tell me how to make my own fuzzy tag finder
i know that there are already functions related to this such as
:tagbarshowtag
and:tagbarcurrenttag
, but i cant combine them in order to search for a tag and if found then jump to it, or i dont know how to.thanks in advance.
The text was updated successfully, but these errors were encountered: