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

Implement mouse support (point & click) #66

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

CogentRedTester
Copy link
Owner

@CogentRedTester CogentRedTester commented Sep 16, 2022

This PR implements mouse support. This feature must be enabled with the
script-opt mouse_mode=yes and requires mpv v0.33.

I would like to resolve the following issues before merging this PR:

  • Decide on default keybindings
  • Decide on names for keybindings
  • Update README with details of the new mode and bindings
  • Solve the issue of calculating the header offset in the update_mouse_pos() function. I want the calculation to work with any header font size, but the maths isn't adding up for some reason.
  • Handle bottom alignment.
  • Handle center alignment.

Any feedback on these issues is welcome.

Resolves #22

currently this is just an experiment, and the function only works with
non-scrolling directories
Implements a new scrolling system for mouse-mode and properly calculates
the hovered item when scrolling the list.

This hover should work with custom font sizes, but currently the
calculations are not adding up for the header, so that is hardcoded.

See the next commit for keybinds.
@CogentRedTester CogentRedTester added enhancement New feature or request help wanted Extra attention is needed labels Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mouse browsing support
1 participant