lazygit icon indicating copy to clipboard operation
lazygit copied to clipboard

Is it possible to disable URL click but keeping the mouse enabled in lazygit?

Open godsarmy opened this issue 1 month ago • 2 comments

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

I am working in an enterprise environment where i open lazygit by ssh terminal with a lot of URLs not allowed to access. So if i accidently click the URL, lazygit stuck. I can disable URL by mouseEvents = false but this will lose a lot of other convenient mouse features.

Describe the solution you'd like

A config option only to disable URL click to open a page in browser.

Describe alternatives you've considered

Apply 'mouseEvents = false' but it is not convenient

Additional context

n/a

godsarmy avatar Dec 10 '25 00:12 godsarmy

You can do that by putting this into your config file:

os:
  openLink: "true"

Or, if you want the link to appear in the command log, you might use something like

os:
  openLink: echo "ignoring link {{link}}"

stefanhaller avatar Dec 10 '25 07:12 stefanhaller

The openlink trick works for me perfectly. Thank you.

godsarmy avatar Dec 10 '25 19:12 godsarmy