bacon icon indicating copy to clipboard operation
bacon copied to clipboard

fix middle click sending bacon to outer heaven

Open Canop opened this issue 11 months ago • 1 comments

Fix #298

The problem of middle-click is that it's used on linux (especially linux terminals) to send as key events the content of the clipboard.

This PR "solves" the problem by making bacon manage mouse events by itself.

With this PR, bacon scrolls up and down using the mouse wheel events.

Downsides:

  • potential regression for users pasting with middle click into the search input
  • major regression for users selecting and copying with the mouse
  • not using the scroll multiplier defined OS wide

Given the downsides, this PR can't be merged right now. I would need at least to manage selecting (which could be better that today's selection as it would handle the scrollbar correctly), but also replace the menu for copying that most terminals propose on right click.

Canop avatar Jan 15 '25 20:01 Canop

Managing a menu on right click, selecting with the mouse, this looks quite feasible. But some people probably use other mouse related features, eg other menu enabled features that would be specific to their terminal application.

Canop avatar Jan 15 '25 20:01 Canop