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

Emulate double click to play items. #1074

Merged
merged 2 commits into from
Mar 25, 2023

Conversation

ThomasFrans
Copy link
Contributor

@ThomasFrans ThomasFrans commented Mar 4, 2023

Change the behavior of ListView to treat a click on an item that is already selected as a double click. It allows the user to play songs (not episodes since currently it's not possible to determine if a ListItem is an episode) by "double clicking" them. It is a bit of a hack, but it works pretty well. A possible downside is that when people that don't like mouse integration in a TUI click to focus the terminal window, it could jump to the song they clicked if that happened to be the selected one.

closes #917

Change the behavior of `ListView` to treat a click on an item that is
already selected as a double click. It allows the user to play songs
(not episodes since currently it's not possible to determine if a
`ListItem` is an episode) by "double clicking" them. It is a bit of a
hack, but it works pretty well. A possible downside is that when people
that don't like mouse integration in a TUI click to focus the terminal
window, it could jump to the song they clicked if that happened to be
the selected one.
@ThomasFrans
Copy link
Contributor Author

I don't know if this is an acceptable approach to implement this feature request, as there is the problem explained in the commit message. I don't think this is too bad of a problem personally since clicking anywhere already highlights songs. A configuration option to disable the mouse could be added for people that prefer no mouse integration in TUI applications.

@hrkfdn
Copy link
Owner

hrkfdn commented Mar 25, 2023

Merged, thanks! :)

@ThomasFrans ThomasFrans deleted the mouse-play-possibility branch May 11, 2023 15:50
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.

[Mouse Support] Middle click to play an item, left click to open it
2 participants