Git Product home page Git Product logo

discourse-header-search's Introduction

discourse-header-search

A Discourse plugin that makes the search bar visible in the header in the Desktop UI and hides the search menu icon.

  • Only affects Desktop UI. Does not apply to mobile web.
  • Is hidden when scrolling on a topic. See Settings.

screenshot

Installation

To install using docker, add the following to your app.yml in the plugins section:

hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - mkdir -p plugins
          - git clone https://github.com/angusmcleod/discourse-header-search.git

and rebuild docker via

cd /var/discourse
./launcher rebuild app

Settings

By default, the header search bar is hidden, and the normal search menu icon reappears, when you scroll down on a topic. This is to allow the topic title, category labels and tags to display (aka the 'extra info').

You can override the extra info and have the search input display instead by checking the setting override extra info in Settings > Plugins.

Known issues

The search UI suffers from the same issues as the current discourse search UI (as of 12/08/15), namely:

  1. If you enter a search term, then delete it, the search results do not get updated, leaving you with an empty input and the results of your prior search term: http://quick.as/VjbYSqvAG

  2. If you enter a search term, then delete it, then go to 'full page search', a single letter of your prior search remains, on an otherwise blank page: http://quick.as/gLbJu98oX

discourse-header-search's People

Contributors

angusmcleod avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.