Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 months ago
JSON representation
Add context menu items in Obsidian to search the internet.
- Host: GitHub
- URL: https://github.com/HEmile/obsidian-search-on-internet
- Owner: HEmile
- Created: 2021-01-17T10:35:53.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-17T03:30:57.000Z (over 2 years ago)
- Last Synced: 2024-06-17T22:49:10.412Z (5 months ago)
- Topics: obsidian, obsidian-md, obsidian-plugin
- Language: TypeScript
- Homepage: https://publish.obsidian.md/semantic-obsidian/Search+on+Internet+Plugin
- Size: 4.08 MB
- Stars: 104
- Watchers: 4
- Forks: 7
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
- jimsghstars - HEmile/obsidian-search-on-internet - Add context menu items in Obsidian to search the internet. (TypeScript)
README
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)