-
-
Notifications
You must be signed in to change notification settings - Fork 902
Add kind to builtin.tags picker #3235
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
Conversation
I'll guess you mean to hide the kind if all values are "unknownkind"?
The things is that I don't think looking at the first row works. In a regular project you can have tags without kind.
I can certainly add a config to show/hide kind. I can also only add the I'll update the PR with the an option |
Yeah exactly. I think it would be jarring to existing users of the picker if there's suddenly a entirely new column of just "unknownkind".
Thanks, sounds good! |
@jamestrew, this new version does not add "unknownkind" if the kind is not present in the tags file. That means that the column is omitted if all the entries for kind are nil. Also added a option Can be tested with:
|
Thanks! Looks good to me. |
Description
The current tags picker will not show the kind
Current tags picker:

With this changes the picker will show the kind (
method
,field
,package
,class
, etc):It augments the regex match in the existing picker to get the
extensions_fields
that may be present on each line of thetags
file (see TAG FILE FORMAT).That
extension_fields
may contain akind:xxx
field, if it does it will be picked up and added to the entry otherwise theunknownkind
will be used.To generate a
tags
file that includes kinds usewhere the
--fields=+zK
is the part that adds the kinds.Fixes #3233
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list relevant details about your configuration
tags
file generated withgit ls-files . | $(brew --prefix universal-ctags)/bin/ctags --fields=+zK -L - -f tags
Tested the with the following keymap to trigger telescope
Configuration:
Checklist: