-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Add variant/struct field search tab #58364
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add variant/struct field search tab #58364
Conversation
At some point (when we get many of these), we should probably not make it a tab, but a dropdown menu |
I'm open to any suggestions. :) |
Is this searching for types being used in structs/variants, or for the names of the field/variant? If it's the latter, this tab is not useful - it's duplicating a subset of the first tab. I'm not familiar with how the search code looks at the index, and your screenshot makes it look like it's searching through names. |
ping from triage @GuillaumeGomez @QuietMisdreavus what's the update on this? |
I can't easily tell from reading the code whether this is searching for variants/fields by name or by type. If it's just a way to limit a name-based search to variants/fields (as the image in the PR description indicates), i don't think it's useful enough to include - they should already be included in the "In Names" tab. It seems like the problem statement is something like this. Say you have the following crate: pub struct SomeStruct;
pub struct OtherStruct {
pub my_field: SomeStruct,
} You should be able to search "SomeStruct" and get |
I'll change this PR to go this way then. It'll match more what I had in mind to being with. |
☔ The latest upstream changes (presumably #59226) made this pull request unmergeable. Please resolve the merge conflicts. |
Ping from triage, @GuillaumeGomez, what's the status of this PR? |
Still requires to be done. |
I'll reopen once I'm done. |
Fixes #58229.
I'm just wondering if it's really useful though. Any other opinions would be very appreciated!
r? @QuietMisdreavus