BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

Highlight searched works on page after using search functionality

Open binarydad opened this issue 3 years ago • 1 comments

Describe the feature you'd like

Whenever I search for keywords, after clicking on the page containing the word, I typically have to Ctrl+F to find the word again on the page. It would be nice to have the page highlight the word(s) when clicked-through from a search result page.

Describe the benefits this would bring to existing BookStack users

I feel this would help users quickly find where ON the page the keyword was found.

Can the goal of this request already be achieved via other means?

Yes, using Ctrl+F in the browser, and typing in the word (again)

Have you searched for an existing open/closed issue?

  • [X] I have searched for existing issues and none cover my fundemental request

How long have you been using BookStack?

1 to 5 years

Additional context

No response

binarydad avatar Sep 13 '22 17:09 binarydad

Thanks for the suggested @binarydad. We did have this at some point but think it went missing a while back. Search has got more complex now though, as in search types & syntax. Maybe we just keep things simple and look for the first standard text search term, or exact term, and search for that.

Could potentially be a good case for text fragments but would need JS backup (Maybe for all if specific styling is needed) since Safari/Firefox support is lacking but both vendors have been positive to the proposal.

ssddanbrown avatar Sep 13 '22 22:09 ssddanbrown

I would appreciate this feature. As of now I'm searching for a term and after that I also need to search through Ctrl+F in the browser for the exact localtion within a page.

Man-in-Black avatar Aug 22 '23 11:08 Man-in-Black