This extension can easily search with cursor.
This extension is very simple. The behavior is depends on the line on which cursor. There are three behaviors.
- Search with selected text.
- Search with text of the line on which cursor.
- In the case the empty line, just open the browser(Google).
If text has valid URL, open website directly, otherwise https://www.google.com/search?q=${text}
.
Available Command is only search with cursor.
Windows | Mac |
---|---|
Shift + alt + s | Shift + option + s |
These settings are specific to search-with-cursor.
Setting | Description | Type | Default Value |
---|---|---|---|
searchWithCursor.customSearchEngine | Search engine. | string | https://www.google.com/search?q=%s |
Add configuration searchWithCursor.customSearchEngine.
It replace search engine.
Default value: https://www.google.com/search?q=%s
%s
will be replaced selected text.
Enhance matching logic for url.
- Use raw RegExp instead of url-regex(it matches
localhost:8080
and url in markdown syntax). - Use encodeURIComponent.
Change the condition of direct access from exact match to including.
Initial release.