Skip to content

rustdoc: Don't search on every single keystroke in the search box #20095

Closed
@ghost

Description

Doing a search can take a full second. This is a major annoyance, especially when it triggers multiple times on mistype + backspace. Also, the results from the first few keystrokes are often not relevant.

Proposed solution: Introduce a delay before starting the search. KDevelop has a similar feature with a default of 500 ms, and it's awesome.

Other solutions:

  • speed up the search. A good idea in any case, but it's probably better to simply not do the work in the first place.
  • cancel the running search on a new keystroke.
  • only trigger on Enter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    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