Skip to content

HEmile/obsidian-search-on-internet

Repository files navigation

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!

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.

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

And similar for external links:

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.

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 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 by SilentVoid13

Modal code is inspired by the Citation plugin