GithubHelp home page GithubHelp logo

sfm-paste.nvim's Introduction

sfm-paste.nvim

The sfm-paste extension is a plugin for the sfm plugin, providing a convenient way to paste text or images into new files within the sfm file explorer.

Demonstration

Here is a short demonstration of the sfm-paste extension in action:

sfm-paste.mp4

Prerequisites

Before using sfm-paste.nvim, ensure that you have the following prerequisites:

  • macOS: Install the pngpaste command-line tool by running brew install pngpaste using Homebrew. This is required for pasting images from the clipboard on macOS.

Note: sfm-paste.nvim is currently supported on macOS only. Contributions to add support for other platforms are welcome.

Installation

To install the sfm-paste extension, you will need to have the sfm plugin installed. You can then install the extension using your preferred plugin manager. For example, using packer.nvim:

{
  "dinhhuy258/sfm.nvim",
  requires = {
    { "dinhhuy258/sfm-paste.nvim" },
  },
  config = function()
    local sfm_explorer = require("sfm").setup {}
    sfm_explorer:load_extension "sfm-paste"
  end
}

Configuration

The sfm-paste plugin provides the following configuration options:

local default_config = {
  mappings = {
    paste = { "<C-v>" },
  },
}

You can override the default configuration in load_extension method

sfm_explorer:load_extension("sfm-paste", {
  mappings = {
    paste = { "<C-v>", "p" },
  },
})

Credit

This project was inspired by and includes references to the clipboard-image.nvim project. We would like to thank the author for their contributions and code references.

sfm-paste.nvim's People

Contributors

dinhhuy258 avatar

Stargazers

 avatar Yuta Katayama avatar  avatar  avatar  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.