Rooyca / obsidian-api-request

Obsidian plugin that allows you to make requests to API's and receive responses in codeblocks or store them in localStorage.
https://rooyca.github.io/obsidian-api-request/
MIT License
78 stars 4 forks source link

[Feature Request] Multiple API items and hotkeys #3

Closed eb2ai closed 2 months ago

eb2ai commented 10 months ago

I hope we will eventually be able to define multiple APIs in settings and associate each with a hotkey.

I love the idea of typing along, hitting a hotkey, and automatically inserting all the weather, backup status, uptime of a server, current score of the game, etc, etc, etc.

Rooyca commented 10 months ago

This one is a bit tricky, but we could give it a try. The first thing that comes to my mind would be to use something like Ctrl+A that displays a menu with all the configured apis and you can choose the one you want to insert in the document. I don't know... I will check if it can be done the way you say.

eb2ai commented 10 months ago

I haven't done any programming in this realm, but I think you could look at a couple of other apps that do this well. Quick Add comes to mind.

I appreciate you creating this and taking my ideas into consideration.

Rooyca commented 10 months ago

Where can I look that app? Can you send me the link?

I appreciate you find use for this

eb2ai commented 10 months ago

Quick Add

Rooyca commented 10 months ago

Thanks, I'll check it tomorrow

Rooyca commented 10 months ago

It was as complicated as I thought at first but I managed to make it work, of course it is not the most aesthetically pleasing, but it works. If you want to try it you can update your plugin.

PS: I also removed the json:: part :)

Regards.