jesseduffield / jesseduffield/lazygit

Support borderless full screen command log to allow displaying long url without panel border

Open
#4,568 5 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

**Is your feature request related to a problem? Please describe.**

I use [git-credential-oauth](https://github.com/hickford/git-credential-oauth) for authentication, so whenever I perform any git operation that needs auth, the git will output this on my console: `Please complete authentication in your browser ... https://github.com/login/oauth/authorize?...a long long url ...`.

That works as expected when I do above with `git` manually. The long url will be displayed as wrapped text in multiple lines, but terminals are typically smart enough to recognized the wrapped multi-line text as one long url, so, just one click will bring me to the login page and login successfully.

But when using lazygit, the long url is always displayed inside the command log panel, even if I use `@` to "maximize" it into half screen.

![Image](https://github.com/user-attachments/assets/5ad57b75-fae9-4713-bb62-022bcad30aea)

Those borders and extra panels threw terminal's url detection off. Now when I hover my mouse on that long url, only the first line is recognized as a url and being clickable, and then the subsequent login page opened in my browser is an incomplete url, so I can't login.

**Describe the solution you'd like**
Add a "borderless (full screen) command log" option when pressing `@`.

**Describe alternatives you've considered**
Not that I am aware of.

**Additional context**
I suppose this is not an unusual scenario. So, I wonder how others handle this situation. Currently, my workaround is to consciously run a raw git command OUTSIDE of lazygit to trigger and complete auth there, this will bootstrap an authenticated session inside git credential cache for some hours or days, but I will eventually run into the same issue afterwards.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.