[mini.files] Async Gitignore with Caching & Prefetching for Large Repos #2265
wroyca
started this conversation in
Show and tell
Replies: 3 comments 6 replies
|
You should package this up as a plugin 😛 |
0 replies
|
Thanks for sharing! I've hidden all the code under the spoiler, as it is quite a lot. How big of a monorepo are we talking about here? My initial expectation was that executing Also, I'd recommend using |
4 replies
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I've been a daily user of mini.files for about 3 years now (pretty much since it was first released). It's easily my favorite file explorer, but working in massive monorepos brought up one specific pain point: I needed to respect .gitignore rules without slowing down navigation, and I needed to be able to toggle them off instantly to find buried config files.
About 2 years ago, I started with the excellent snippet from @mrjones2014 (found here in issue #377). It was a great base, but as I threw larger and larger codebases at it, I hit some performance walls, so over the last couple of years, I've expanded that original idea to fit my needs and I figured I'd share it here in case anyone else is struggling with mini.files performance in large git projects:
Code
Demo:
Screencast.From.2026-02-11.12-42-43.mp4
All reactions