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

Track List: Add shortcut Ctrl-Return to the searchbar #4141

Merged
merged 2 commits into from Oct 8, 2022

Conversation

nemethf
Copy link
Contributor

@nemethf nemethf commented Sep 20, 2022

Ctrl-Return in the searchbar enqueues the complete songlist

Check-list

  • There is a linked issue discussing the motivations for this feature or bugfix
  • Unit tests have been added where possible
  • I've added / updated documentation for any user-facing features.
  • Performance seems to be comparable or better than current master

What this change is adding / fixing

This is a follow-up to #2745 and #2701, because after four years I'm finally starting to use the "Track List" browser. I've now looked the rest of the browsers and I don't see how they could be extended with this feature. This pull request copies code from the implementation of the panned browser, so it results in code duplication. However, a substantial duplication is already present, so this PR doesn't change the status quo.

Once again, I am not able to find a place where the change should be documented. docs/guide/shortcuts.rst is the obvious target, but I just don't know where to write what.

If necessary, please, tell me how to refine the PR, and I'll do my best to update it. Thanks again.

Ctrl-Return in the searchbar enqueues the complete songlist
@declension
Copy link
Member

Thanks!
My initial concern is that the track list songlist often contains thousands of songs, so an accidental ctrl-enter could make for a very long queue.

Elsewhere (e.g. songlist plugins) we have protection mechanisms above a threshold, that might be an idea here - e.g. a dialog that asks Are you sure you want to enqueue 5,234 files? or something

Update the track list and the paned browser to use this variable.

The actual confirmation request is implemented in QuodLibetWindow, and
the advanced_preferences plugin allows the user to configure the
limit, which defaults to 50.
@nemethf
Copy link
Contributor Author

nemethf commented Sep 27, 2022

My initial concern is that the track list songlist often contains thousands of songs, so an accidental ctrl-enter could make for a very long queue.

I've pushed a new commit that ask for confirmation if the number of songs exceed a configurable limit.

@declension declension merged commit 9131401 into quodlibet:master Oct 8, 2022
@declension
Copy link
Member

Thanks!

nemethf added a commit to nemethf/quodlibet that referenced this pull request Oct 11, 2022
As a follow-up to quodlibet#4141, document the new shortcut key.
declension pushed a commit that referenced this pull request Oct 20, 2022
As a follow-up to #4141, document the new shortcut key.
@nemethf nemethf deleted the track-list-ctrl-retrun branch October 23, 2022 17:36
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.

None yet

2 participants