Ticket #35 (closed enhancement: fixed)
Allow direct entry to Keyword searching from remote control
| Reported by: | stuarth | Owned by: | stuarth |
|---|---|---|---|
| Priority: | major | Milestone: | 2.2.2 |
| Component: | Plugin | Version: | 2.2 |
| Keywords: | Cc: | b@… |
Description
From Kim B. Heino on the plugins mailing list...
The new Lazy Keyword Search is great! How about adding a config option to enter it directly? I mean, if enabled and I press SEARCH on remote, I'll get directly to keyword search. Pressing SEARCH again would take me to LazySearch top menu and then to standard search. This could be a third option to "SEARCH BUTTON BEHAVIOUR" config dropdown.
Change History
comment:2 Changed 5 years ago by stuarth
From Kim:
Yes, that's exactly what I was looking for.
How about this:
First press of SEARCH -> keyword search Second press of SEARCH -> normal search Third press of SEARCH -> keyword search or top menu, it doesn't matter
When I want to go to LazySearch top menu, I can press SEARCH (-> keyword) and LEFT (-> top menu).
Yes, I think that if the preference is set that way it will be a toggle between jumping straight into keyword search and normal search - that way it's the minimal change from what it currently does.
comment:3 Changed 5 years ago by stuarth
OK, I think I've implemented this in r198 (note that the ZIP file isn't yet updated so you'll need the LazySearch2.pm file directly):
http://hickinbottom.demon.co.uk/lazysearch/browser/trunk/LazySearch2.pm?rev=198
I've changed the SEARCH button behaviour preference to let you also specify direct entry to any search mode (not just keyword).
When you've got time (no rush), could you give this a whirl and let me know how you get on? Thanks.
comment:4 Changed 5 years ago by stuarth
- Status changed from assigned to closed
- Resolution set to fixed
Kim has reported that it seems to be working so I'll close this - if there are significant problems I can reopen it again.
Kim did report that if you select of the "direct search" choices then pressing SEARCH cannot get you back to the original search (which it does if you just choose lazy search as the option). That's a minor inconvenience but should be fixed at some point so I've raised ticket:46.

My thinking on this is to add a further option to the 'SEARCH Button Behaviour' dropdown on the plugin settings page.
This new option would be "Starts entry of a keyword search", and would be equivalent to finding the "Keyword" menu option and pressing RIGHT - ie it will jump straight into entering the search.
I'll need to think carefully about making a further press of SEARCH get to the top-level Lazy Search menu as that logic is already quite complicated. I think I need to look at including a proper state machine to track the modes (or, preferably, access the current mode from SlimServer) as tracking my own state is becoming unsustainable (I've already had a few tricky bugs because of it).