Skip to content

[0.7.1] Markdown Viewer - Display Count of Matching Occurrances When Using ^|+f Search #6

@jthodge

Description

@jthodge

Description

I propose displaying an incremental and decremental "$CURRENT_COUNT of $TOTAL_COUNT matches" (or similar) message when ^|+f search is engaged in Markdown Viewer.

Specifically, in this moment, this would make navigating the libplaybit API documentation UX significantly more pleasant. More generally, supporting this interaction advances Markdown Viewer towards the expected features commonly supported in Markdown editors.

N.B. "Highlight All", "Match Diacritics", and "Whole Words" would also be nice-to-haves.

Steps to Reproduce

  1. Open a document in Markdown View
  2. Press ^|+f to engage search
  3. Query a string matching a known present string in the document
  4. Navigate through each matching instance using | UI buttons or ^|(+shift)+g

Expected Behavior

I expect a "$CURRENT_COUNT of $TOTAL_COUNT matches" (or similar) message to be shown adjacent to my query, which provides immediate query feedback, and assists with wayfinding throughout the document.

Actual Behavior

No match count message is provided. The only query feedback is highlighting the queried term, if a matching term is present.

Image

If no matches exist, one must submit the query to receive a "The search phrase was not found in the page" dialog.

Image

Logs

N/A

Environment

  • Platform and OS Version: macOS Sonoma 14.3
  • Playbit Version: 0.7.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions