OCamlPro/ocp-index

Search only the currently displayed module for a term

aantron opened this issue · 0 comments

When a view is already up, I would like to be able to find all occurrences of a given term within that view only, i.e. something like the less / command. Identifiers, signatures, and documentation should be searched.

This has been requested a couple times, however it has always been in issues that were mainly concerned with full-switch search (which I am not requesting). See #121 (comment) by @AltGr and #1 (comment) by @dlobraico.

Current-module-only search should not be a problem with ocp-browser's design, because by the time that search is being executed, the current module is already fully loaded.

This would greatly speed up learning modules using ocp-browser.