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

fix middle click sending bacon to outer heaven #302

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

Canop
Copy link
Owner

@Canop Canop commented Jan 15, 2025

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 added 2 commits January 15, 2025 21:16
This makes bacon handle mouse events.

Downsides:
- potential regression for users pasting with middle click
- major regression for users selecting and copying with the mouse
- not using the scroll multiplier defined OS wide

Fix #298
@Canop
Copy link
Owner Author

Canop commented Jan 15, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

middle click sends bacon to outer heaven
1 participant