nwjlyons / google-search Goto Github PK
View Code? Open in Web Editor NEWSearch Google for the currently selected text in Sublime Text.
Home Page: https://sublime.wbond.net/packages/Google%20Search
License: MIT License
Search Google for the currently selected text in Sublime Text.
Home Page: https://sublime.wbond.net/packages/Google%20Search
License: MIT License
I think this plugin would be better if it supported using the Command Palette, so that we don't need to right click to run the search.
Could you tell me if there is a way to affix the file type name to the Google searches? For example, if I'm working on a .py file in Sublime Text and I highlight some text and use your google-search package, I want it to do a search for the highlighted text with " python" included automatically (same with ".php" and " php", etc...)
How to set custom keymap for google search?
{ "keys": ["f5"],
"command": "********"
},
here what command i will replace ?
I can't use same shortcut of package sergeche/emmet-sublime: Shift+Ctrl+G
(Wrap With Abbreviation).
Sublime Text 3211 (also ST4-drag-drop-flop)
MacOS 11.4 MacPro 2018
PackageControl is not installing Google Search.
Just to be sure, can select to install Google Search.
PackageControl: Install Package - Google Search is there, select nothing happens.
/Users/.../Library/Application Support/Sublime Text 3/Installed Packages ...nothing.
/Users/.../Library/Application Support/Sublime Text 3/Packages/User/Package Control.sublime-settings ...nothing.
PackageResourceViewer confirms that Google Search is not installed.
PackageControl is not installing Google Search.
The plugin breaks when given search strings including quote characters, e.g.
search this "and this"
A potential fix would be to convert the query to URL format (substituting special characters) by using urllib
like so:
import webbrowser
from urllib.parse import quote_plus # <--- added
import sublime, sublime_plugin
def search(q):
settings = sublime.load_settings("google_search.sublime-settings")
# Attach the suffix and the prefix
q = quote_plus(settings.get('prefix', '') + q + settings.get('suffix', '')) # <--- changed
fullUrl = settings.get('domain', 'https://www.google.com') + "/search?q=%s" % q
webbrowser.open(fullUrl)
Hi,
in mac os sierra, the webbrowser not open default browser.
You could add an option to select the browser to be used, such as:
try:
browser = settings.get('browser', '')
webbrowser.get(browser).open(fullUrl)
except:
webbrowser.open(fullUrl)
thanks
Note: sublime text open url, has the same error.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.