Skip to content

Sublime Text plugin for quickly searching selected words online.

License

Notifications You must be signed in to change notification settings

absop/ST-SearchOnline

Repository files navigation

Search Online

Features

Quickly search a selected paragraph of text in the browser by configuring the search engine name and link.

Installation

This plugin depends on the dctxmenu plugin. Before installing this plugin, you must install dctxmenu plugin.

The following steps assume that you already have Package Control installed.

  1. Copy the URL of this repository: https://github.com/absop/SearchOnline
  2. Enter into Sublime Text, press down the shortcut Ctrl+Shift+P to enter into Command Palette
  3. Input the command pcar(Package Control: Add Repository)
  4. Press down the shortcut Ctrl+V, then Enter
  5. Using Package Control to install this package
    1. Press down Ctrl+Shift+P
    2. Input pcip(Package Control: Install Package)
    3. Input SearchOnline

Settings

The default settings are shown below

{
    "caption": "Search Online",
    "platforms": {
        "Wiki": "https://en.wikipedia.org/wiki/%s",
        "Github": "https://github.com/search?q=%s&type=Code",
        "Baidu": "https://www.baidu.com/s?ie=UTF-8&wd=%s",
        "Google" : "http://google.com/#q=%s"
    }
}

when you select a paragraph of text, click the right mouse button, you can get the following menu

And if your setting is

{
    "caption": "在线搜索",
    "platforms": {
        "Wiki": "https://en.wikipedia.org/wiki/%s",
        "Github": "https://github.com/search?q=%s&type=Code",
        "Baidu": "https://www.baidu.com/s?ie=UTF-8&wd=%s",
        "Google" : "http://google.com/#q=%s"
    }
}

then you will get the follow menu when you select a paragraph of text and click the right mouse button.

Releases

No releases published

Packages

No packages published

Languages