Skip to content

in-popup search excerpt & highlighting? #159

Description

@adioni

Context

No response

Description

I've noticed in Material for MkDocs, the search popup shows a short content excerpt for each result, with the matched search term underlined within that excerpt. This gives users pre-click context to evaluate whether a result is worth navigating to.

Image

This is different from the behavior I've noticed so far in my initial tests with zeniscal's current search functionality, which does not have the page excerpt in the search modal, and applies highlighting only on the destination page onlyafter the user has already clicked a result.

Image

Is this functionality currently possible in zensical, and, if not, is it planned at all for a future release?

Related links

Use Cases

This in-popup highlighting is what allows users to assess the relevance of a result before clicking through. On a documentation site with many pages, page titles alone are often insufficient to judge whether a given result actually addresses what the user is looking for. The excerpt gives them that signal without requiring a round-trip to the page.

Visuals

No response

Before submitting

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    change requestIssue requests a new feature or improvementresolvedIssue is resolved, yet unreleased if open

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions