absop / ST-SearchOnline

Sublime Text plugin for quickly searching selected words online.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Sublime Text plugin for quickly searching selected words online.

License:MIT License


Languages

Language:Python 100.0%