Skip to content
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

Add tag datatype #698

Merged
merged 1 commit into from
Nov 2, 2020
Merged

Add tag datatype #698

merged 1 commit into from
Nov 2, 2020

Conversation

raven42
Copy link
Collaborator

@raven42 raven42 commented Oct 30, 2020

Closes #680

Add g:tagbar_show_data_type field to show the tag datatype next to the tag in the tagbar window
This uses the --fields=t field to get the datatype from ctags. If not found, then it will attempt to derive the datatype by extracting all the output from the pattern preceeding the tag name.

Closes preservim#680

Add `g:tagbar_show_data_type` field to show the tag datatype next to the tag in the tagbar window
This uses the `--fields=t` field to get the datatype from ctags. If not found, then it will attempt to derive the datatype by extracting all the output from the `pattern` preceeding the tag name.
@raven42 raven42 marked this pull request as draft October 30, 2020 22:04
@raven42 raven42 marked this pull request as ready for review November 2, 2020 17:35
@raven42 raven42 requested a review from alerque November 2, 2020 17:35
@raven42
Copy link
Collaborator Author

raven42 commented Nov 2, 2020

Ready to merge this in. As this is a new option that has to be explicitly enabled, I think we can do more testing with other languages and such after initial commit. In my testing with c / c++ files it seems to be stable.

@raven42 raven42 merged commit 601b5c0 into preservim:master Nov 2, 2020
@raven42 raven42 deleted the data-type branch November 2, 2020 21:06
dev-hann added a commit to dev-hann/tagbar that referenced this pull request Sep 18, 2023
Closes preservim#680

Add `g:tagbar_show_data_type` field to show the tag datatype next to the tag in the tagbar window
This uses the `--fields=t` field to get the datatype from ctags. If not found, then it will attempt to derive the datatype by extracting all the output from the `pattern` preceeding the tag name.

More testing is needed on other languages. So far this has been stable with C / C++ files parsing the datatype from ctags output. It has also been tested with Java files for the inferred datatype by parsing the pattern line and pulling out everything prior to the tag.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

show type of field by default
2 participants