sourcegit-scm / sourcegit

Windows/macOS/Linux GUI client for GIT users
MIT License
1.14k stars 109 forks source link

[FEATURE] Limit single line length when rendering code to improve performance #234

Closed gadfly3173 closed 3 months ago

gadfly3173 commented 3 months ago

In front-end project development, it is easy to encounter the need to submit a single-line js file with tens of thousands of characters, such as the compressed jquery.min.js. Directly rendering such a long single-line file in AvaloniaEdit can easily get stuck. The default behavior of VSCode is to only display the first 10,000 characters. To view the rest, you need to turn on the automatic line wrap function. I think it is possible to limit the number of characters displayed for a single line of text in SourceGit, and it is better to use external tools when you need to view the complete file.