Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/HEmile/obsidian-search-on-internet

Add context menu items in Obsidian to search the internet.
https://github.com/HEmile/obsidian-search-on-internet

obsidian obsidian-md obsidian-plugin

Last synced: about 1 month ago
JSON representation

Add context menu items in Obsidian to search the internet.

Awesome Lists containing this project

README

        



Downloads


Github latest release


Documentation


chat on Discord

Warning: The right-click menu is currently broken in the latest Obsidian release, so this plugin will not work as expected!

## Search on Internet
Adds the option to search selected text on external websites, like Google and Wikipedia.
The search opens in an iframe in Obsidian. You can add your own websites!

![](https://raw.githubusercontent.com/HEmile/obsidian-search-on-internet/master/resources/context_iframe.gif)

It also adds the search options to the file context menu to search based on the title of a note.
And you can choose to open searches in your default browser instead of Obsidian.

![](https://raw.githubusercontent.com/HEmile/obsidian-search-on-internet/master/resources/demo.gif)

You can also right-click on an internal link to perform a search on that link:

![](https://raw.githubusercontent.com/HEmile/obsidian-search-on-internet/master/resources/internal_link.png)

And similar for external links:

![](https://raw.githubusercontent.com/HEmile/obsidian-search-on-internet/master/resources/external_link.png)

### Settings
Note: You need to have the latest Obsidian v0.10.11 installed for this plugin to work!

By default, the plugin comes with searches on Google and Wikipedia.
You can add your own websites to search on in the settings.

![](https://raw.githubusercontent.com/HEmile/obsidian-search-on-internet/master/resources/img.png)

For each website, fill in the following three fields:
- Name: The name of the search. This will be displayed in the search bar and the context menu.
- URL: The URL to open. `{{title}}` will be replaced by the current notes title. This is used as the 'query'.
- Tags (optional): A list of tags for notes to display the search option on.
In the example screenshot, this is used to only add the IMDB search on notes tagged with `#actor`, `#movie` or `#director` (in Dutch!)

You can also disable the iframe search and open the search in your browser.

### Contributors
- [nhaouari](https://github.com/nhaouari) added the setting not to encode, and started work on opening external links in iframes.

### Credits
Settings code is mainly taken from the [Templater plugin](https://github.com/SilentVoid13/Templater) by [SilentVoid13](https://github.com/SilentVoid13)

Modal code is inspired by the [Citation plugin](https://github.com/hans/obsidian-citation-plugin/blob/master/src/modals.ts)