olrenso / obsidian-home-tab

A browser-like search tab for your local files in Obsidian.
MIT License
263 stars 11 forks source link

Omnisearch or Obsidian search integration #6

Open tecnoborder opened 1 year ago

tecnoborder commented 1 year ago

I love the plugin, it would be great to have the ability to search for words within the notes by embedding omnisearch or the native obsidian search plugin

tecnoborder commented 1 year ago

I am also using the surfing plugin and I was wondering if it could be possible to find a way to also add an option to search on the internet

olrenso commented 1 year ago

I love the plugin, it would be great to have the ability to search for words within the notes by embedding omnisearch or the native obsidian search plugin

Given the public API of omnisearch, I'll probably add it in the future. Thank you for the request.

I am also using the surfing plugin and I was wondering if it could be possible to find a way to also add an option to search on the internet

It's something I need to investigate more. It'd be nice to find a way to incorporate the surfing plugin. See also #1.

olrenso commented 1 year ago

I'm implementing the Omnisearch API and I'm wondering how to let the user select which search method to use. At the moment, I can think of two possible solutions:

  1. Add a switch in the settings to choose whether use Omnisearch or the default search of the plugin.
  2. Add the possibility to search through Omnisearch with a filter key (in the same way as attachments now). This solution could also be used to search on the web, through the surfing plugin, or in some other way I'll come up with.

What do you think?

tecnoborder commented 1 year ago

Love this! Thank you! Probably option two allows for more flexibility. An alternative could be to add two buttons below (like in google search): search with omni search or search the web (via surfing)

tecnoborder commented 1 year ago

wow, thanks for implementing this!! do you think it will be possible in the future to also implement an obsidian native search? Omni search does not support exact search, e.g. queries like "word1" "word2"

olrenso commented 1 year ago

At the moment I'm not planning to add it (but any PR is welcome). I'm prioritizing improving Omnisearch support and trying to implement a web search. It may be a possible future feature.