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

2000 char limit? #35

Open
BobTB opened this issue Jun 4, 2023 · 7 comments
Open

2000 char limit? #35

BobTB opened this issue Jun 4, 2023 · 7 comments

Comments

@BobTB
Copy link

BobTB commented Jun 4, 2023

Is it not possible to work around this?

@jgchristopher
Copy link
Owner

I have thought about sending the data in chunks. I will give it a try.

@BobTB
Copy link
Author

BobTB commented Jun 6, 2023

I already tried it, it does not work from bookmarklet, as it looses focus (which stops the code) and therefore sends just the first chunk, but perhaps the extension could do it.

@lwsys
Copy link

lwsys commented Oct 6, 2023

extension also couldn't do it....

@jgchristopher
Copy link
Owner

I think I have a potential solution.

I could encrypt the clipping and post it to a storage service provided by the same service that generates chrome extensions (obsidian clipper.com), which would temporarily store the encrypted clipping and return an id.

I could then call the local obsidian:// URL, passing the id and the key to decrypt.

The plugin can make a GET call to the obsidianclipper.com service with the ID, retrieve the encrypted clipping, decrypt with the provided key, and write out the clipped info as usual.

The obsidianclipper service would delete the encrypted clipping from ETS after returning it.

@lwsys
Copy link

lwsys commented Oct 9, 2023

I think I have a potential solution.

I could encrypt the clipping and post it to a storage service provided by the same service that generates chrome extensions (obsidian clipper.com), which would temporarily store the encrypted clipping and return an id.

I could then call the local obsidian:// URL, passing the id and the key to decrypt.

The plugin can make a GET call to the obsidianclipper.com service with the ID, retrieve the encrypted clipping, decrypt with the provided key, and write out the clipped info as usual.

The obsidianclipper service would delete the encrypted clipping from ETS after returning it.

Are you meanings if clipping can provide an external service to store data, and if Obsidian can fetch encrypted data from that API? That sounds really cool! It would be even better if you could run the service locally.

@lymeswold
Copy link

I think I have a potential solution.

I could encrypt the clipping and post it to a storage service provided by the same service that generates chrome extensions (obsidian clipper.com), which would temporarily store the encrypted clipping and return an id.

I could then call the local obsidian:// URL, passing the id and the key to decrypt.

The plugin can make a GET call to the obsidianclipper.com service with the ID, retrieve the encrypted clipping, decrypt with the provided key, and write out the clipped info as usual.

The obsidianclipper service would delete the encrypted clipping from ETS after returning it.

Would this work on Obsidian Mobile? I seem to remember use of Obsidian URIs is limited in the mobile version, if they are usable at all. I ask because I run mobile in the Android container on my Chromebook. It works as a desktop app just as effectively as the native Mac or Win version. Therefore, can I request that if you do implement this, you retain the current transfer mechanism and maybe make it an option in Settings. After all, if I clip something > 2000 chars I can easily perform two or more separate clips to capture the entire text. Thanks.

@jgchristopher
Copy link
Owner

Thanks for the info!

I will make sure that mobile is supported in whatever approach I end up taking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants