Quickly search a selected paragraph of text in the browser by configuring the search engine name and link.
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.
- Copy the URL of this repository: https://github.com/absop/SearchOnline
- Enter into Sublime Text, press down the shortcut Ctrl+Shift+P to enter into Command Palette
- Input the command
pcar(Package Control: Add Repository)
- Press down the shortcut Ctrl+V, then Enter
- Using Package Control to install this package
- Press down Ctrl+Shift+P
- Input
pcip(Package Control: Install Package)
- Input
SearchOnline
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.