Git Product home page Git Product logo

image-save.nvim's Introduction

image-save.nvim

An incredibly simple plugin that adds an easy command for saving 3rd/image.nvim images.

screen_cap.mp4

Install

with Lazy:

{ "benlubas/image-save.nvim", cmd = "SaveImage" },

Usage

The :SaveImage will find the nearest image to your cursor in the current window, and prompt you to save that image.

The file path you enter is used in a cp command from the current wording directory. So you can pass ~/path/to/cwd/image.png or just image.png and those are the same.

Yes I know the command and the plugin title are 'backwards' :SaveImage makes more sense, but save-image.nvim makes it seem like I'm some type of Messiah

Config

You do not need to call setup unless you want to enable the mouse menu option.

require("image-save").setup({
    -- Add a "Save Image" option to the Popup menu.
    -- This lets you "right click > save" an image.
    -- Will remove "How to Disable Mouse" from the Popup menu.
    enable_mouse = true
})

Shameless Self Promotion

This plugin is made for use with the molten-nvim plugin to allow users to easily save their plots/charts. Go check it out.

image-save.nvim's People

Contributors

benlubas avatar bekaboo avatar

Stargazers

yuvals1 avatar nebu avatar Jonny Hou avatar Daniel Holström avatar hebe ⚸ dite avatar Chaz avatar Jannik Buhr avatar Andrei Neculaesei avatar hasegawa.tetsuya avatar Ano Rebel avatar Aquib Javed avatar Yuta Katayama avatar Tim Tyrrell avatar kohane27 avatar Vera Rei avatar  avatar Philip Bradley avatar  avatar Alejandro avatar

Watchers

 avatar

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.