Skip to content

Search tool is useless with Toggle Blocks #611

Closed

Description

@morrolinux

Hi,
first off, thank you for this beautiful piece of software!

The issue

Here's the current behaviour of the search result:

  1. You type something
  2. Results are shown in the floating search box
  3. You click on one result
  4. You get to the page containing the text you've searched

Here's what I think should happen instead:

  1. same as now
  2. same as now
  3. same as now
  4. You get at the exact location of the text in the page, preferably with a brief highlighting effect.

Why is this an issue

To try this yourself:

  1. Create a demo page with two toggle blocks, each with a different content.
  2. Close/unexpand the toggle blocks so their content won't be shown.
  3. Leave the page and try to search their content with the Search tool.
  4. You'll get to the correct page, but you won't be able to tell which toggle block contains the text you're looking for
  5. Try to search the text with CTRL+F, it won't work because the toggle blocks are closed.

The only way to work around this is to expand all toggle blocks one by one, and rely on the native browser search with CTRL+F.
This obviously defeats the purpose of toggle blocks.

Proposed solutions

  1. Scroll down to the relevant portion of the page when clicking on a search result
  2. Make the search tool expand the Toggle Block containing the searched text
  3. Bind CTRL+F to an in-page Search, instead of relying on the browser's search in page capability

Hope it makes sense.

Best,
Moreno

Activity

  1. fuscodev commented on Jan 29, 2025

    @fuscodev
    Contributor

    Ciao @morrolinux , I'm working on it

    Image

  2. morrolinux commented on Jan 29, 2025

    @morrolinux
    Author

    Ciao @morrolinux , I'm working on it

    Image Image

    That looks amazing!

  3. tobehn commented on Aug 20, 2025

    @tobehn

    this is great and can be useed as work arround for not highlighting the global search results.

    • search in global ( Ctrl + K )
    • find blocks with search term > follow the desired link to the page/block
    • Ctrl + F to open search / replace
    • type the same search term > it will be highlighted

    However, this is very clunky i'd like to suggest implementing the highlighting functionality of this feature in global search

  4. Philipinho commented on Sep 6, 2025

    @Philipinho
    Member

    Closing since there is an page-level search and replace now.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions