Highlight to Search

:information_source: Summary Highlight text and search it quickly
:eyeglasses: Preview Theme Creator (To an example topic)
:hammer_and_wrench: Repository GitHub - NateDhaliwal/discourse-highlight-to-search · GitHub
:question: Install Guide How to install a theme or theme component
:open_book: New to Discourse Themes? Beginner’s guide to using Discourse Themes

Install this theme component

Overview

This component allows users to highlight text in posts and search for it quickly. Searches can be set to be the forum’s search, for an external search (e.g. Google).

Screenshots

Settings

search url: The URL path of the search function. You can use the %{selected_text} as a placeholder.

is external: Check this if the search is external, e.g. Google.

search exact: Check this to search for exactly the selected text.

search exact character: The character to denote an exact search. Defaults to ".

include from author: For a forum-wide search, you can check this to show posts only from the post author with the selected text.

The button text and title can be edited via locales.

8 Likes

nicely done Nate! :clap:

you should fill in the github repo readme file tho :wink:

1 Like

Since you don’t know the link to the topic here in the forum until it’s been approved, it always takes me a while to edit the Readme, too. I’m not always online when my topic is published, and I wait to edit the file until I know the link.

2 Likes