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
Enable Highlight action on single word selection #6114
Conversation
Also add "Fulltext search" as an option for highlight action.
Dunno if we should also add |
@poire-z Works fine afaict ;-) |
@poire-z |
Yes it is. But people enabling the new option "Enable (highlight action) on single word selection" to be able to use one of the highlight action wouldn't have it in the set. So my question about including it. These highlight actions can also be cycled with a gesture, so I guess some people might stick with it, and would cycle depending on the book content, and the need for quick "translate" or "wikipedia", or the good usual of "dictionary". |
OK, this is buggy: when enabling "on single word", selecting multiple words only uses the first :) |
Current order looks fine to me ;). |
Thank you so much for the quick work! This seems to work well for me. I had a few comments regarding the implementation though, back in #6111. |
@protist: here's the 3rd version: highlight_search_singleword3.zip |
@poire-z Looks great! This seems to work really well for my device! Thank you! The last thing is I find the UX quite confusing for the settings. In particular, the
Then a second tier where you specify one of the six associated actions, i.e. the popup dialog, highlight, translate, Wikipedia, dictionary, fulltext search. |
Thanks for the feedback.
Could make sense. But as it may have less simple implications to other code, I let that for some (someone else's :) other PR. |
Thanks again @poire-z. That definitely sounds reasonable. (Just for the record, ideally I think the multiple word selection would be different. e.g. if single-word lookup, short hold, is search, it doesn't make as much sense to force multiple-word selection, short hold, to be search too, but perhaps something like dictionary instead. Hence the finer tuning would be useful.) |
(Just for the record too :) |
Ooops, sorry, I mistyped. In my usage, probably 90% of the time I select multiple words it's for a highlight. For me, single words are never highlights, and are either search or dictionary. |
Also add "Fulltext search" as an option for highlight action.
See #6111 (comment). Closes #6111.
@protist, in this highlight_search_singleword.zip are the 2 modified files, if you want to confirm this works for you.
This change is