Skip to content

Additional input text line for either filtering or searching #329

@stenzengel

Description

@stenzengel

Thanks for this nice project, which I like a lot and which I use for Asciidoctor documents.

Have you ever thought about adding an additional input text line that could be used to quickly find headings in a very long table of contents?

Two alternatives come to mind. I don't know which one makes more sense. Maybe you have other ideas:

  • Filtering:
    This hides all headings (except ancestors) that do not match the specified filter string. If it is confusing for the user that the current heading may not be visible when scrolling in the document, the filter string could either be cleared when scrolling, or the heading at the current position (and its ancestors) should not be filtered away even if it does not match the filter string.
  • Searching:
    This is similar to the standard browser search, but only searches the TOC. There are no options (uppercase, whole word), but there are "Next" and "Previous" buttons that allow you to jump to the matches in the TOC and thus in the normal document.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions