Usability/Keyboard: Add Ctrl+Shift+F shortcut to search the main tracks database#13200
Conversation
1a95d62 to
46facc1
Compare
46facc1 to
55d557f
Compare
|
Note that there is already |
|
@ronso0 Thanks, I will have a look! I'll have to place the shortcut handling somewehere else, though, so it also works when the search widget is disabled (this behavioris inherent to Sidenote: There seem to be at at least three ways to define keyboard shortcut actions and associated key sequences right now:
Option 3 is only active when keyboard shortcuts are enabled in the options, but when it is, it (mostly) overrides the other two. Maybe it makes sense to integrate the "(Custom) keyboard shortcuts disabled" codepath into |
|
How about adding "Search in Tracks" to the Library menu? |
f5fe605 to
0210e1b
Compare
0210e1b to
4d386c8
Compare
caef3f3 to
22f171e
Compare
22f171e to
8f7713b
Compare
…all" on Enter/Return When the current text selection is due to the automatic selectAll() when focusing the text field, a subsequent Key_Enter should switch to the library view. Otherwise, it is due to an autocompletion and should trigger the search first.
...so it uses the same format as the rest of the application.
… tooltip The Ctrl+Backspace shortcut is a standard shortcut handled by QLineEdit and deletes the current word, but doesn't actually clear the search box if more than one word has been typed. This is different from the function of the clear button, which clears the whole search box.
986e93a to
488bd9e
Compare
acolombier
left a comment
There was a problem hiding this comment.
The code LGTM! Haven't had a chance to test the feature yet
acolombier
left a comment
There was a problem hiding this comment.
Tested and works as expected! @ronso0 were your change requests addressed?
|
Friendly ping @ronso0 :) |
|
Just a note before I take a final look: edit: anchors are added in mixxxdj/manual#734 |
|
LGTM, will do a manual test asap. Meanwhile, do you mind squashing the "accidental insertion/removal" commits into the kbd.cfg commit? |
ca974e2 to
e795ce9
Compare
Done 👍 |
|
@ronso0 Can this be merged to 2.6-beta? |
| connect(pSearchHere, &QAction::triggered, this, &WMainMenuBar::searchInCurrentView); | ||
| pLibraryMenu->addAction(pSearchHere); | ||
|
|
||
| QString searchAllTitle = tr("Search in Tracks Library..."); |
There was a problem hiding this comment.
Let's use "Tracks view" so it's consistent with "Current view" and the searchbar tooltip
ronso0
left a comment
There was a problem hiding this comment.
Thank you, LGTM and works as expected!
Yes. |
|
Whooopsy, totally forgot to press merge. Thank you very mucho @cr7pt0gr4ph7 been missing this feature lately, happy to merge finally! |
|
@ronso0 Thanks for merging! Sorry for not being involved in the project for the last few weeks, had a lot other stuff to do. I'm still planning on getting my other PRs ready for merging 👍 |
|
Unfortunately the global hotkey removed the Ctrl+F shortcut in the Developer Tools dialog. |
|
Apparently Shall we backport? |
The new shortcut
Ctrl+Shift+F(Search globally1) complements the existing shortcutCtrl+F(Search in current location).The use case for this is pretty simple (and motivated by me teaching dance classes) and probably pretty common elsewhere, too:
Footnotes
Ok, it is only "globally" as long as all tracks are present in the main Mixxx database, and not contained in external libraries like iTunes or Rekordbox.2 ↩
As a later improvement, one could extend
Ctrl+Shift+Fto, either:a. Actually initiate a global search over all available libraries, or:
b. Make default library to which
Ctrl+Shift+Fjumps configurable in the preferences, or:c. Provide different shortcuts for the different external libraries. ↩