-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
Today, maim.nvim only supports uploading to the user's local computer. There may be some use cases where we want to upload the image to a cloud storage provider first and then embed the link we get back into the document.
This means the document is much more portable as when sharing the document with others, you do not need to include all the images as extra files.
Concept
A new command: MaimUpload which does the following:
graph TD
MaimExecutable[maim]
MaimNvim[maim.nvim]
UserDocument[Document in Buffer]
CloudProvider[Cloud Provider]
MaimNvim-->|1.user executes MaimUpload command|MaimExecutable
MaimExecutable -->|2.takes a screenshot, saves in local temp file|Local
MaimNvim-->|3.takes the local temp file, uploads to the configured cloud provider|CloudProvider
CloudProvider-->|4.Gives a link back|MaimNvim
MaimNvim-->|5.embed the link into the document|UserDocument
Example cloud provider
- Github CDN
- When you drag a image into a GitHub issue or pull request description, it will automatically upload it for you and provide back a link
- Would need to find a way to do this programatically
- Imgur
Reference
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request