Skip to content

rustdoc: feature request directly go to item on exact match #84214

Closed
@TrAyZeN

Description

@TrAyZeN

Problem

Hello, we already have an option Directly go to item in search if there is only one result which can be enabled in the settings

image

However, when typing an item path we have a lot of results that shows up and so we can rarely get redirected with the previous option.

image

Solution

I think that it could be useful to have a feature Directly go to item on exact match.

  • This feature would be an option which can be enabled in the settings (so we still let users to choose what they prefer).
  • As the name suggests it would redirected to the item documentation when typing the exact path.

For instance, on the previous screenshot when typing std::vec::Vec it would redirect to the item page.

Metadata

Metadata

Assignees

Labels

A-rustdoc-searchArea: Rustdoc's search featureC-enhancementCategory: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions