Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse hover follows delta Hyperlinks #3928

Open
mayorbyrne opened this issue Sep 20, 2024 · 0 comments
Open

Mouse hover follows delta Hyperlinks #3928

mayorbyrne opened this issue Sep 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mayorbyrne
Copy link

mayorbyrne commented Sep 20, 2024

Describe the bug
I'm seeing some unintended behavior with regards to hyperlinks in delta. They work as expected on first click, but after that it appears to follow every link by simply hovering over the hyperlink.

To Reproduce

  1. I click a hyperlink in a diff, which opens the file in the editor
  2. close the file
  3. Now simply hovering over a link in the diff opens the file again
  4. This behavior appears to resolve itself after the terminal window loses focus

Expected behavior
Hyperlinks should only be followed on an actual mouse click.

Version info:
commit=, build date=, build source=homebrew, version=0.44.1, os=darwin, arch=arm64, git version=2.39.5 (Apple Git-154)
git version 2.39.5 (Apple Git-154)

Additional context
I'm using the suggested config

git:
  paging:
    colorArg: always
    pager: delta --dark --paging=never --line-numbers --hyperlinks --hyperlinks-file-link-format="lazygit-edit://{path}:{line}"

Screen Recording of the issue

lazygit

@mayorbyrne mayorbyrne added the bug Something isn't working label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant