obsidian-smart-connections icon indicating copy to clipboard operation
obsidian-smart-connections copied to clipboard

Support for pluginAPI?

Open haouarihk opened this issue 1 year ago • 3 comments

Hi, I'm working on a plugin that uses smart-connections programmatically. but the api seems to change from version to version

i used to use something like this:

app.plugins.plugins["smart-connections"].file_retriever(r.link, { lines: 10, max_chars: 1000 })

and now its something like this

app.plugins.plugins["smart-connections"].brain.smart_blocks.get(r.link, { lines: 10, max_chars: 1000 }).get_as_context_for_chat()

it would be nice to have a isolated class with relevent functions like these, that class will be used with pluginAPI

Thanks for this awsome plugin

haouarihk avatar Feb 16 '24 16:02 haouarihk