The issue has been closed

This is sort of another variation of https://github.com/sindresorhus/refined-github/pull/1085 or one of the issues that were linked to it.
But actually I'm surprised that the file filter does not hide the files, 🤔 I just don't know whether we can detect whether a file is toggled by the user or hidden by the filter.
posted by fregante over 3 years ago
Maybe hide folded files with "BIN" label, like the ones on the screenshot?
posted by kidonng over 3 years ago
That's an arbitrary change. Binaries are still part of the diff
posted by fregante over 3 years ago
yeah, my problem isn't having binaries in the diff - my problem is that the default layout takes up too much space + the sheer number of dom nodes in this kind of scenario causes my computer to lag up. I can probably just make a user script that does this in my browser, but since anyone using Yarn with Zero-Installs on Github would probably run into this issue it seems like something that would be broadly useful.
posted by osdiab over 3 years ago
Actually for I have think the native filter is enough for Yarn's case, just deselect .zip
.
Oh well I didn't notice it's already unchecked. My memory sucks 😅
Maybe we should listen to the filters and when an extension is unchecked, we hide the files completely.
posted by kidonng over 3 years ago
posted by kidonng over 3 years ago 
yep that's it - it can just be arbitrarily large depending on what you've installed/uninstalled - in teh case in my screenshot it was a crazy number of zips lol
EDIT: actually the scenario i really care about is not the commit page but rather the Files
tab of a pull request, so that URL isn't quite it for me - but it's related
posted by osdiab over 3 years ago
BTW not sure but this might be somewhat complex to do since large diffs do cause files to be lazy loaded, not sure what github's behavior is in those cases
posted by osdiab over 3 years ago
We can probably do this: completely hide files if filtered, by default.
The issue is probably that we have to manually apply the filters (i.e. select
all "zip" filers, for example) because I assume GitHub does not expose "this file was toggled because of a filter" in the DOM; for us every filtered file is likely indistinguishable from a file that the user just toggled by clicking its toggle.
This might not be an easy feature and thus probably not worth it.
posted by fregante over 3 years ago
posted by FloEdelmann over 3 years ago 
posted by fregante over 3 years ago