That doesn't really work all the time, because large files or large commits are lazy loaded on scroll, so what you're searching might not have loaded yet
I wish they didn't switch to requiring a login to search code... seems like a big privacy issue cause you just know they're saving all those searches and associating it with your account.
I can see the argument from both sides... and maybe both is true. I think the same could be said about twitter... having to login to read tweets means they can easily track who looks at what... which is very valuable information to a lot of people with money.
This is Microsoft enshittifying the platform they acquired to squeeze more revenue. But this is totally fine, because as user hostile and evil as the Microsoft corporation measurably is, they made a cute jpg few years ago about loving opensource or something (yeah, I know, those are different things, but I'm calling out their PR bullshit and the usual bootlickers)