scambier / userscripts

A collection of userscripts for Greasemonkey / Tampermonkey
16 stars 4 forks source link

Suggestion for Omnisearch userscript: open Obsidian when not open #20

Open chrisgrieser opened 1 year ago

chrisgrieser commented 1 year ago

Right now, if using Omnisearch with the respective user-script, there is simply a "Loading…" message to the sidebar, which never resolves. It would be useful instead the userscript could launch Obsidian, ensuring the display of the Omnisearch-sidebar. (Probably as an optional setting for the userscript)

The launching should be possible from a user userscript thanks to Obsidian's URIs.

scambier commented 1 year ago

I guess you'd like an auto-launch if not started, and then doing the query, but those scripts are getting a bit hairy & repetitive (between google, kagi, and ddg), so I'd like to refactor them before making them more complex :p

In the meantime, I added a callback to correctly handle errors image