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

Web​Search

by kallookoo ALL Needs Review

Sublime Text plugin to search on World Wide Web

Details

Installs

  • Total 987
  • Win 598
  • Mac 211
  • Linux 178
Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13
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 0 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
01234Jun 26Jun 23Jun 20Jun 17Jun 14Jun 11Jun 8Jun 5Jun 2May 30May 27May 24May 21May 18May 15Jun 26 Linux: 0 Mac: 0 Windows: 0Jun 25 Linux: 0 Mac: 0 Windows: 0Jun 24 Linux: 0 Mac: 0 Windows: 0Jun 23 Linux: 0 Mac: 0 Windows: 0Jun 22 Linux: 0 Mac: 0 Windows: 0Jun 21 Linux: 0 Mac: 0 Windows: 0Jun 20 Linux: 0 Mac: 0 Windows: 0Jun 19 Linux: 0 Mac: 0 Windows: 0Jun 18 Linux: 0 Mac: 0 Windows: 0Jun 17 Linux: 0 Mac: 0 Windows: 0Jun 16 Linux: 0 Mac: 0 Windows: 0Jun 15 Linux: 0 Mac: 0 Windows: 0Jun 14 Linux: 0 Mac: 0 Windows: 0Jun 13 Linux: 0 Mac: 0 Windows: 0Jun 12 Linux: 0 Mac: 0 Windows: 0Jun 11 Linux: 0 Mac: 0 Windows: 0Jun 10 Linux: 0 Mac: 0 Windows: 0Jun 9 Linux: 0 Mac: 0 Windows: 0Jun 8 Linux: 0 Mac: 0 Windows: 0Jun 7 Linux: 0 Mac: 0 Windows: 0Jun 6 Linux: 0 Mac: 0 Windows: 0Jun 5 Linux: 0 Mac: 0 Windows: 0Jun 4 Linux: 0 Mac: 0 Windows: 0Jun 3 Linux: 0 Mac: 0 Windows: 0Jun 2 Linux: 0 Mac: 0 Windows: 0Jun 1 Linux: 0 Mac: 0 Windows: 0May 31 Linux: 0 Mac: 0 Windows: 0May 30 Linux: 0 Mac: 0 Windows: 0May 29 Linux: 0 Mac: 0 Windows: 0May 28 Linux: 0 Mac: 0 Windows: 0May 27 Linux: 0 Mac: 0 Windows: 0May 26 Linux: 0 Mac: 0 Windows: 0May 25 Linux: 0 Mac: 0 Windows: 0May 24 Linux: 0 Mac: 0 Windows: 0May 23 Linux: 0 Mac: 0 Windows: 0May 22 Linux: 0 Mac: 0 Windows: 0May 21 Linux: 0 Mac: 0 Windows: 0May 20 Linux: 0 Mac: 0 Windows: 0May 19 Linux: 0 Mac: 0 Windows: 0May 18 Linux: 0 Mac: 0 Windows: 0May 17 Linux: 0 Mac: 0 Windows: 0May 16 Linux: 0 Mac: 0 Windows: 0May 15 Linux: 0 Mac: 0 Windows: 0May 14 Linux: 0 Mac: 0 Windows: 0May 13 Linux: 0 Mac: 0 Windows: 0Jun 26 Linux: 0 Mac: 0 Windows: 0Jun 25 Linux: 0 Mac: 0 Windows: 0Jun 24 Linux: 0 Mac: 0 Windows: 0Jun 23 Linux: 0 Mac: 0 Windows: 0Jun 22 Linux: 0 Mac: 0 Windows: 0Jun 21 Linux: 0 Mac: 0 Windows: 0Jun 20 Linux: 0 Mac: 0 Windows: 0Jun 19 Linux: 0 Mac: 0 Windows: 0Jun 18 Linux: 0 Mac: 0 Windows: 0Jun 17 Linux: 0 Mac: 0 Windows: 0Jun 16 Linux: 0 Mac: 0 Windows: 0Jun 15 Linux: 0 Mac: 0 Windows: 0Jun 14 Linux: 0 Mac: 0 Windows: 0Jun 13 Linux: 0 Mac: 0 Windows: 0Jun 12 Linux: 0 Mac: 0 Windows: 0Jun 11 Linux: 0 Mac: 0 Windows: 0Jun 10 Linux: 0 Mac: 0 Windows: 0Jun 9 Linux: 0 Mac: 0 Windows: 0Jun 8 Linux: 0 Mac: 0 Windows: 0Jun 7 Linux: 0 Mac: 0 Windows: 0Jun 6 Linux: 0 Mac: 0 Windows: 0Jun 5 Linux: 0 Mac: 0 Windows: 0Jun 4 Linux: 0 Mac: 0 Windows: 0Jun 3 Linux: 0 Mac: 0 Windows: 0Jun 2 Linux: 0 Mac: 0 Windows: 0Jun 1 Linux: 0 Mac: 0 Windows: 0May 31 Linux: 0 Mac: 0 Windows: 0May 30 Linux: 0 Mac: 0 Windows: 0May 29 Linux: 0 Mac: 0 Windows: 0May 28 Linux: 0 Mac: 0 Windows: 0May 27 Linux: 0 Mac: 0 Windows: 0May 26 Linux: 0 Mac: 0 Windows: 0May 25 Linux: 0 Mac: 0 Windows: 0May 24 Linux: 0 Mac: 0 Windows: 0May 23 Linux: 0 Mac: 0 Windows: 0May 22 Linux: 0 Mac: 0 Windows: 0May 21 Linux: 0 Mac: 0 Windows: 0May 20 Linux: 0 Mac: 0 Windows: 0May 19 Linux: 0 Mac: 0 Windows: 0May 18 Linux: 0 Mac: 0 Windows: 0May 17 Linux: 0 Mac: 0 Windows: 0May 16 Linux: 0 Mac: 0 Windows: 0May 15 Linux: 0 Mac: 0 Windows: 0May 14 Linux: 0 Mac: 0 Windows: 0May 13 Linux: 0 Mac: 0 Windows: 0Jun 26 Linux: 0 Mac: 0 Windows: 0Jun 25 Linux: 0 Mac: 0 Windows: 0Jun 24 Linux: 0 Mac: 0 Windows: 0Jun 23 Linux: 0 Mac: 0 Windows: 0Jun 22 Linux: 0 Mac: 0 Windows: 0Jun 21 Linux: 0 Mac: 0 Windows: 0Jun 20 Linux: 0 Mac: 0 Windows: 0Jun 19 Linux: 0 Mac: 0 Windows: 0Jun 18 Linux: 0 Mac: 0 Windows: 0Jun 17 Linux: 0 Mac: 0 Windows: 0Jun 16 Linux: 0 Mac: 0 Windows: 0Jun 15 Linux: 0 Mac: 0 Windows: 0Jun 14 Linux: 0 Mac: 0 Windows: 0Jun 13 Linux: 0 Mac: 0 Windows: 0Jun 12 Linux: 0 Mac: 0 Windows: 0Jun 11 Linux: 0 Mac: 0 Windows: 0Jun 10 Linux: 0 Mac: 0 Windows: 0Jun 9 Linux: 0 Mac: 0 Windows: 0Jun 8 Linux: 0 Mac: 0 Windows: 0Jun 7 Linux: 0 Mac: 0 Windows: 0Jun 6 Linux: 0 Mac: 0 Windows: 0Jun 5 Linux: 0 Mac: 0 Windows: 0Jun 4 Linux: 0 Mac: 0 Windows: 0Jun 3 Linux: 0 Mac: 0 Windows: 0Jun 2 Linux: 0 Mac: 0 Windows: 0Jun 1 Linux: 0 Mac: 0 Windows: 0May 31 Linux: 0 Mac: 0 Windows: 0May 30 Linux: 0 Mac: 0 Windows: 0May 29 Linux: 0 Mac: 0 Windows: 0May 28 Linux: 0 Mac: 0 Windows: 0May 27 Linux: 0 Mac: 0 Windows: 0May 26 Linux: 0 Mac: 0 Windows: 0May 25 Linux: 0 Mac: 0 Windows: 0May 24 Linux: 0 Mac: 0 Windows: 0May 23 Linux: 0 Mac: 0 Windows: 0May 22 Linux: 0 Mac: 0 Windows: 0May 21 Linux: 0 Mac: 0 Windows: 0May 20 Linux: 0 Mac: 0 Windows: 0May 19 Linux: 0 Mac: 0 Windows: 0May 18 Linux: 0 Mac: 0 Windows: 0May 17 Linux: 0 Mac: 0 Windows: 0May 16 Linux: 0 Mac: 0 Windows: 0May 15 Linux: 0 Mac: 0 Windows: 0May 14 Linux: 0 Mac: 0 Windows: 0May 13 Linux: 0 Mac: 0 Windows: 0

Readme

Source
raw.​githubusercontent.​com

WebSearch

It will no longer be updated. If someone wants to keep updating it, contact me.

Sublime Text plugin to search on World Wide Web.

This package adds:

  • A Web Search command to the context menu on the view.
  • A command palette for the current selection or word
  • A command palette that will ask you what to search
  • A command palette for change engine during session (Close Sublime Text, return to active engine)

By default Google is used for web searches, but the search engine is configurable.

Installation

Using Package Control

  • From command palette Package Control: Install Package
  • Look for “WebSearch”

Usage

  • Using context menu on view, see context_menu options for customize.
  • Place the cursor inside a word or select some text and press Ctrl+Shift+s.
  • Using Command Pallete: Find WebSearch… and select available options

Settings

{
    // Select current engine
    "current_engine": "Google",
    // Default engines defined inside of plugin
    // is possible overwritte any engine using same name
    // "engines":
    // {
    //     "Ask": "https://www.ask.com/web?q=",
    //     "Bing": "https://www.bing.com/search?q=",
    //     "DuckDuckGo": "https://duckduckgo.com/?q=",
    //     "Google": "https://google.com/search?q=",
    //     "Wikipedia": "https://wikipedia.org/w/index.php?search=",
    //     "Yahoo": "https://search.yahoo.com/search?p="
    // },
    "engines": {},
    // Enable developer engines
    "use_developer_engines": false,
    // Default developer enfines inside of plugin
    // is possible overwritte any engine using same name.
    // They are the ones that have occurred to me ;)
    // "developer_engines":
    // {
    //     "MDN": "https://developer.mozilla.org/search?q=",
    //     "PHP": "https://php.net/search.php?show=quickref&pattern=",
    //     "Python": "https://docs.python.org/3/search.html?q=",
    //     "Python2": "https://docs.python.org/2/search.html?q=",
    //     "WordPress": "https://developer.wordpress.org/?s="
    // },
    "developer_engines": {},
    // Exclude available engines for show
    // Default to exclude: ["Ask", "Bing", "Yahoo", "Python2"]
    "exclude_engines_from_list": ["Ask", "Bing", "Yahoo", "Python2"],
    // Change mode of the context menu
    "context_menu_with_children": false,
    // Show context menu with different caption:
    // 1 - default text caption "Web Search" (disabled if "context_menu_with_children": true)
    // 2 - Custom text "Search on <engine>"
    // 3 - Custom text with excerpt "Search on <engine> for <excerpt>..."
    "context_menu_description": 3,
    // Length of the selected text for view in context menu
    "context_menu_description_length": 10,
    // Mode to open browser, tab or window
    "browser_mode": "tab",
    // Select and change the search engine when the Command Palette is used
    // Command palette option on execute:
    // - WebSearch: Search selected text
    // - WebSearch: Search text
    // Note:
    // It does change globally, to maintain the "current_engine" and not have to change it again.
    "engine_change": false,
    // Add "WebSearch: <engine>" on status bar
    "show_current_engine_on_status_bar": true,
    // Use for remove or change status bar text prefix
    "status_bar_text_prefix": "WebSearch:"
}

Add a new or rewritte exists search engine

  • Open Preferences > Package Settings > Web Search > Settings - User
  • Add a new entry under engines

Code:

{
    "engines": {
        "EngineName": "EngineUrl"
    }
}

Available keyboard shortcut

  • For launch search with current engine ctrl+shift+s
  • For launch search with custom query ctrl+alt+s
  • For change current engine only on current session ctrl+shift+e

Change default keyboard shortcut

Open Preferences > Package Settings > Web Search > Key Bindings - User