You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
Note that it should say something like "Warning: some content is hidden and won't be found by the browser" (in much fewer words)
Activity
fregante commentedon May 25, 2026
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.
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:
copy-on-yis invisible #9591It should either appear in the middle of the page or at the top-center
[-]Warn of hidden comment on cmd-f[/-][+]Warn of hidden content on cmd-f[/+]