Skip to content

Add mouse bindings for right third of status bar - #1272

Merged
flyingmutant merged 1 commit into
cmus:masterfrom
pgaskin:mouse-bar-right
Jul 23, 2023
Merged

flyingmutant merged 1 commit into
cmus:masterfrom
pgaskin:mouse-bar-right

Conversation

@pgaskin

@pgaskin pgaskin commented Jul 16, 2023

Copy link
Copy Markdown
Member

Default to play/volume.

@pgaskin pgaskin left a comment

Copy link
Copy Markdown
Member Author

@pgaskin

pgaskin commented Jul 16, 2023

Copy link
Copy Markdown
Member Author

Thoughts, @flyingmutant?

@flyingmutant

Copy link
Copy Markdown
Member

Thanks, will review later this week.

@gavtroy gavtroy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good with the minor caveat that documentation doesn't mention that "_right" means "the rightmost third of the bar", and I'm not sure why we pick 33% rather than 50%. But no big deal.

To make it more intuitive, it might be nice to change the default format_statusline to move the volume indication to the right of the bar (and maybe add the missing % symbol). For instance it could look like -
image
But the PR does do what it says on the tin.

@pgaskin

pgaskin commented Jul 22, 2023

Copy link
Copy Markdown
Member Author

I chose 33% since with 50%, I changed the volume by accident too frequently (especially since my mouse usually starts over the track list).

Changing the default position of the volume indicator would probably be a good idea for another PR.

@flyingmutant
flyingmutant merged commit 971204b into cmus:master Jul 23, 2023
@pgaskin
pgaskin deleted the mouse-bar-right branch September 11, 2024 15:01
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.

3 participants