Giter VIP home page Giter VIP logo

maim.nvim's Introduction

maim.nvim's People

Contributors

kiran94 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

maim.nvim's Issues

Support Uploading to Cloud Storage Providers

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

https://www.reddit.com/r/neovim/comments/13u4wpt/comment/jm1ifjr/?utm_source=share&utm_medium=web2x&context=3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.