ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Hound Search

by bgreenlee ST3

Sublime Text plugin for Etsy's Hound Code Search

Details

Installs

  • Total 424
  • Win 119
  • Mac 240
  • Linux 65
May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Hound - Hound Search Sublime Text Plugin

Search Hound from within Sublime Text.

Installation

Install via Package Control. Open your Command Palette (⇧⌘P), run “Package Control: Install Package”, and look for “Hound Search”.

Configuration

There are two required parameters:

  • hound_url - the location of your hound instance
  • github_base_url - the base url of where your repositories live

If you want to be able to double-click on search results to open them in Sublime, you'll also need to set:

  • local_root_dir - the local root directory of your repositories

See below for all settings.

/* default settings */
{
    // location of your hound instance
    // e.g. http://hound.example.com
    "hound_url": "",

    // the base url of where your repositories live
    // e.g. https://github.com/youror
    "github_base_url": "",

    // local root directory of your repositories, used for opening files within Sublime
    // e.g. /Users/bob/repositories
    "local_root_dir": "",

    // don't display results from these repos
    // e.g. ["somerepo", "someotherrepo"]
    "exclude_repos": [],

    // custom headers to send with the API request to Hound
    // e.g. {"X-Auth":"s3kret"}
    "custom_headers": {},

    // open double-clicked search results in the browser by default
    // set to false to open in Sublime Text (must have local_root_dir set)
    // shift-double-click will always do the opposite
    "default_open_in_browser": true,

    // set to true to enable debug logging
    "debug": false
}

Notes

Hound sets up double-click handler for search results. The event is forwarded, so it doesn't interfere with the system double-click handler. However, since Sublime Text currently has only a global context for mouse events, it will conflict with any other plugins that also define a double-click handler.