Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API key not saving #1

Closed
FootPrintStudio opened this issue Sep 5, 2024 · 9 comments
Closed

API key not saving #1

FootPrintStudio opened this issue Sep 5, 2024 · 9 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@FootPrintStudio
Copy link

The API key is not saving, I've tried multiple times, but each time I attempt to paste or drag and drop an image, I get the error that I haven't set the API key. I've tried on a fresh vault with the same issue, so unlikely that it's affected by another plugin.

@jordanhandy
Copy link
Owner

Hi @FootPrintStudio

I can't seem to reproduce this. When you paste the API key in the appropriate field, you should be receiving a Notice from the app that the API key was saved and encrypted. At this point, you should be able to exit the settings pane and attempt an upload. I've attached an example quick video below (see link).

Do you see any other messages via Notice, or if you toggle the developer console, do you see any error messages?

macOS → cmd+option+i
Windows → ctrl+shift+i

https://ibb.co/hMWYBgr

@jordanhandy jordanhandy self-assigned this Sep 6, 2024
@jordanhandy jordanhandy added the question Further information is requested label Sep 6, 2024
@FootPrintStudio
Copy link
Author

This is all I get in the console regarding the plugin.
image

I paste the key as instructed; however, when attempting to paste anything I get this error.
image

@FootPrintStudio
Copy link
Author

Ok I realized what was happening; however, there's still a major usability issue. When testing I wasn't pasting an image, I was pasting an image URL such as (https://www.aviationgin.com/images/aag_botanicals.jpg), 90% of the time this is how I usually add images to my vault, so it would be great if the plugin could handle that.

But, perhaps more importantly, it that the plugin seems to block the ability to paste anything if the "Paste via clipboard copy/paste?" setting is on unless it is an image. Having a the plugin parse what is an image (or image link) and not, would make this plugin very useful, unfortunately, it is otherwise a little unwieldy. Using the drag/drop feature is still valuable, but I'd love to see those UX concerns addressed.

@jordanhandy
Copy link
Owner

jordanhandy commented Sep 7, 2024

Out of curiosity, what would be the use case for pasting an image URL instead of the image itself? The URL you provided is the image source, so what constitutes a difference in workflow where you would otherwise intuitively want to paste an image into a multimedia application (instead of the image URL)?

@jordanhandy jordanhandy added the enhancement New feature or request label Sep 7, 2024
@FootPrintStudio
Copy link
Author

Haha, you know when you put it like that, I don't have a good answer, I guess I'm just a little stuck in my workflow... Fair enough, any thoughts on the second thing?

@jordanhandy
Copy link
Owner

The second issue you pointed out seems like a bug. I've got some time to work on this now. I'll post an update when complete.

@jordanhandy jordanhandy added bug Something isn't working and removed question Further information is requested labels Sep 7, 2024
@jordanhandy
Copy link
Owner

@FootPrintStudio

Latest update should fix the global paste issue for items that are not images.
There is also now the option to parse image source links :)

This was put together a tad hastily, so let me know if you have any other issues

image

@FootPrintStudio
Copy link
Author

Nice job! Just checked the update and it all seems to work.

@jordanhandy
Copy link
Owner

Awesome. I'll close this for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants