lazygit
lazygit copied to clipboard
Large files freeze lazygit
Is your feature request related to a problem? Please describe. I was doing a postresql dump, and the file is pretty large (about 4,5gb), so when I opened up lazygit and hovered over the dump file, everything froze for a few minutes.
Describe the solution you'd like
Maybe a message that says something like "this is a huge file, press
Thank you.
Hey,
I would like to give it a try. We should define what qualifies as "pretty large" files, or stop loading a preview after a certain amount of time has passed and ask the user to manually force the file loading. We should then load the preview in a goroutine.