TOC-aware search
Submitted by Johannes Berg
Link to original bug (#787348)
Description
Right now, searching will display the search results like this:
foo *asdf* bar 17
lorem *asdf* ipsum 27
in the side bar, and at the same time the TOC will not be visible.
I frequently search in long documents (e.g. the 802.11 spec with 3.5k pages), and the page numbers mean nothing to me - I usually am looking for search results within specific chapters (as there may be dozens or hundreds of results overall).
Given a document with the structure
Section 1
+ Chapter 1.1
+ Chapter 1.2
Section 2
+ Chapter 2.1
+ Chapter 2.2
it would be very nice to (optionally?) display the search results embedded into the TOC:
Section 1
+ Chapter 1.1
foo *asdf* bar 17
Section 2
+ Chapter 2.2
lorem *asdf* ipsum 27
Note how the leaf nodes, here "Chapter X.Y" are elided when they contain no results.
Version: 3.22.x
Edited by Germán Poo-Caamaño