View Single Post
Old 03-20-2024, 07:15 AM   #9
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by kovidgoyal View Post
I'd certainly be in favor of having *some* UI for this. The search language is complex enough as is, having expression builders helps. Ideally this would be a new tab in the existing advanced search dialog, but it may not work there given that is a modal meant only for build expression type operations.
I agree that the advanced search dialog is a good place for it. I can see how to make it fit in. One would build the query in the dialog. There would be a button to "apply" the query, which would cause the book list to reflect what it says to that point. The OK button applies the query and closes the dialog.

Assuming I go ahead with this, my goals are:
  • No calibre behavior changes if you don't use it.
  • The above-mentioned Advanced search dialog behavior works.
  • A "query" is repeatable.
  • A query is reusable.
  • Queries leave the book list in an understandable state. In particular, any sorting that was done in the query is reflected in the GUI and in the sort history.
  • Operations on the book list after a query do what one expects. In particular, the interface is stable when adding books and subsorting the results.
However, given that the calibre community is showing almost no interest in this, I am putting it aside to relect on whether to do it, and if so how.
chaley is offline   Reply With Quote