Skip to content

Warn of hidden content on cmd-f #9351

Closed

Description

@fregante

Description

Extracted from #7338

Detect when the user attempts to ctrl+f while there are hidden diffs on the page and display a warning

There are a few scenarios where content is hidden and cmd-f won't find it. We actually have a (currently-broken) feature where we detect this keypress on conversations and scroll to the "Load more" button: comment-excess

We can create a generic feature (hidden-content/hidden-content-warning) in which we do this as well as warn the user about hidden content. This can apply to the PR "File changed" tab in most cases, since the new React virtual view won't render all files on screen.

Note that some views may already have a custom search widget that handles (and calls preventDefault on) this shortcut.

Example URLs

(TBD, but long issues and long PRs)

Activity

  1. fregante commented on May 25, 2026

    @fregante
    MemberAuthor

    I'm thinking we should have a new HUD component that we can use to show temporary information like this one. The toast looks too much like a "task completed" action more than a "information you might want to know" UI.

    Image

    Note that it should say something like "Warning: some content is hidden and won't be found by the browser" (in much fewer words)

    The same component can then be used for:

    It should either appear in the middle of the page or at the top-center

  2. changed the title [-]Warn of hidden comment on cmd-f[/-] [+]Warn of hidden content on cmd-f[/+] on May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions