Omnisearch now has HTTP server search injector built in, this repo is left as is.
Search Obsidian in Google
What is this?
A simple plugin that allows you to search Obsidian in Google.
- Features:
- Include excerpt in search result
- Fuzzy match
- Scored result
- Quick open in obsidian
How to use?
Quick Start
- Install Chrome / Firefox(under review) extension in Chrome/Firefox. (Source Code)
- Install Obsidian Omnisearch plugin in Obsidian, configure the plugin as you like.
- Install Search Obsidian in Google plugin in Obsidian. You can now install directly from obsidian plugin store.
- Configure the plugin in Obsidian.
- Set the port number, authentication token, and the vault name in the Chrome extension.
- Hint: you can click the search result to open the file in Obsidian! This requires you to set the vault name in the Chrome extension. It is recommended to check
Always allow www.google.com to open links of this type in the associated app
in the popup window. - Note that
Local Rest API
plugin is not required.
Configuration
- Obsidian Plugin
- Port: The port number of the local REST API between Obsidian and Chrome extension. Default is
27080
.
- Port: The port number of the local REST API between Obsidian and Chrome extension. Default is
- Chrome Extension
- Local Port: This should match the port number in Obsidian plugin.
- Token: The authentication token between Obsidian and Chrome extension. You can find it in Obsidian plugin settings page.
- Vault Name (Optional): Used when you want to click the search result to open the file in Obsidian. You can find the name by clicking the vault icon in the bottom left corner of Obsidian.
Install manually
- Download the latest release from here
- Open the plugin folder in Obsidian, create a folder named
search-obsidian-in-google
and put themain.js
,manifest.json
, andindex.css
in it. - Install Chrome extension in Chrome, configure it properly.
- Install OmniSearch plugin in Obsidian, configure the plugin as you like.
Demo
Known Issues
- Currently only Chrome is confirmed to work. Firefox is under review (help wanted). Brave is not supported (Issue, Brave Issue).
- Some have trouble getting excerpt Issue.
Troubleshooting
- Check if
omnisearch
andsearch obsidian in google
are installed in Obsidian and configured properly. - Check if the port number and token are set in chrome extension.
- Check if
omnisearch
plugin in Obsidian produce the correct result.