jesseduffield / lazygit

simple terminal UI for git commands
MIT License
51.71k stars 1.81k forks source link

Line break in command log #3946

Open SamoylovMD opened 1 week ago

SamoylovMD commented 1 week ago

Describe the bug An undesired line break appears in Git command output.

To Reproduce Cannot provide exact steps for reproduction because it's related to proprietary Gitlab configuration which I don't have access to, but it returns link to Merge Request creation on push.

Expected behavior There are no extra line breaks in git command output, allowing long URLs in git command output.

Screenshots

image

Version info: commit=, build date=, build source=homebrew, version=0.44.0, os=darwin, arch=arm64, git version=2.39.2 (Apple Git-143)

stefanhaller commented 1 week ago

The log panel wraps long lines so that you can read all text, otherwise we'd have to provide a way to scroll left and right to read it when there are very long lines in the output. This would be cumbersome.

As for being able to click the URI, I guess that this PR should help with that. It hasn't been merged yet, but if you can build from source, you might try it. Unless I'm missing something, this should underline the whole URL, and you should be able to click on it without support from your terminal (i.e. without holding a modifier).