obsidian-lemons-search-plugin icon indicating copy to clipboard operation
obsidian-lemons-search-plugin copied to clipboard

[QUESTION] API?

Open luckman212 opened this issue 1 year ago • 3 comments

This looks like an exciting plugin 👍

I've been using OmniSearch, mainly because I can integrate it with other apps since it exposes an API.

Is that something you might consider in the future?

luckman212 avatar Feb 27 '25 23:02 luckman212

Yes, I am planning on an API, but the use of WASM makes this more difficult. It's a lot easier to cause an error by passing the wrong values to the API, and errors in WASM are fatal, meaning a restart of Obsidian or the plugin is needed to recover.

mProjectsCode avatar Feb 28 '25 17:02 mProjectsCode

Ah, that's great news! Good luck with the endeavor.

luckman212 avatar Feb 28 '25 17:02 luckman212

I added a first draft of an API, which currently only allows reusing the existing search modals and data sources but with a custom action on select.

mProjectsCode avatar Feb 28 '25 19:02 mProjectsCode