lazygit icon indicating copy to clipboard operation
lazygit copied to clipboard

Large files freeze lazygit

Open chalmagean opened this issue 1 year ago • 1 comments

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 to preview it".

Thank you.

chalmagean avatar Sep 12 '24 07:09 chalmagean

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.

maxheyer avatar Sep 24 '24 21:09 maxheyer