zeal icon indicating copy to clipboard operation
zeal copied to clipboard

Show the page title in the search results (and support matching it in the search query)

Open FichteFoll opened this issue 7 months ago • 0 comments

This request is related to #1032 (and all of its duplicates) and was triggered by some docsets having the same symbol/method name for different classes/modules/namespaces, which Zeal makes impossible to differentiate from the search results.

First off, here's an example search for addAll in the Java docset. There are a lot of results. I am actually looking for the Collection one, but I absolutely cannot determine which is which and I don't want to open all these results either. I also cannot narrow down the results using further search queries. Other docsets have similar problems (like Haskell) while other other docsets include the package namespace in the searchable part of the symbol (Python, Rust).

addAll in Java update in Python
addAll in Java update in Python

After reporting this upstream at https://github.com/Kapeli/javadocset/issues/15, it was pointed out that Dash shows the page title in the search results list, also using it to match search terms (before the symbol name) in order to narrow down the search results.

In order to properly use Zeal for these kinds of docsets, it must do something with the page title. Ideally do the same as Dash, i.e. included it in the search results and optionally also support using it for matching.

FichteFoll avatar Dec 14 '23 19:12 FichteFoll