GNOME Bugzilla – Bug 340069
Allow book & page indexes as search results
Last modified: 2017-12-10 15:18:16 UTC
The patch I am going to attach to this bug implements: devhelp -s "book:gtk" <-- lands on the root of gtk docs devhelp -s "book:gtk page:GtkNotebook" <-- lands on the notebook top of the page And when a page or notebook is the exact match (i.e. there is an empty trailing search string); then the docs of that page or book are listed as hits alphabetically.
Created attachment 64494 [details] [review] This patch implements book and page index search results This patch also plugs leaks on dh_keyword_model_finalize() and fixed a critical assertion and possible segfault.
Hmmm, seems there are still some completion bugs on this one... If you have a book selected and a page selected and a search string, the exact match becomes the page :-/ I think this is because of the sort algorythm and the hitlist stuff ... looking into it ...
Created attachment 64497 [details] [review] This patch fixes the issues in the previous patch.
Thanks, this look fine. Please commit!
Done, closing bug.
Tristan: it's you who implemented this feature a decade ago, I maybe plan to remove it, see: https://bugzilla.gnome.org/show_bug.cgi?id=791442