image-paste

Copy image or take screenshot and paste it in text document. The image will be saved in given path and relative url will be inserted into document.

bacadra

945

3

0.3.13

MIT

GitHub

This package consumes the following services:

image-paste

Latest OpenIssues Language Licence

Demo

Preview

The image-paste package allows you to copy images or take screenshots and paste them directly into Pulsar. Here's how to use it:

Installation

To install image-paste search for image-paste in the Install pane of the Pulsar settings or run ppm install image-paste. Alternatively, you can run ppm install bacadra/pulsar-image-paste to install a package directly from the Github repository.

Usage in text-editor

  1. Take a screenshot or copy any image to the clipboard.
  2. (Optional) Select text in the TextEditor. The selected text will be used as the proposed name in the next step.
  3. Paste the image into the TextEditor instance. If the hack is activated, you can use the core:paste function (default Ctrl-V), or else use image-paste:paste.
  4. Change the name of the image or accept the proposed name. Note that the Image directory path is prepended to the name.
  5. Press Enter.
  6. You will see that a directory including the file has been created, and a figure path has been inserted in the document.

Usage in tree-view

  1. Take a screenshot or copy any image to the clipboard.
  2. Select a file or directory in the tree view. If multiple items are selected, only the first one will be used.
  3. Paste the image. If the hack is activated, you can use the tree-view:paste function (default Ctrl-V), or else use image-paste:paste.
  4. Change the name of the image or accept the proposed name. Note that the Image directory path is not prepended to the name.
  5. Press Enter.
  6. You will see that a directory including the file has been created, and a figure path has been inserted in the document.

Notes

Contributing 🍺

If you have any ideas on how to improve the package, spot any bugs, or would like to support the development of new features, please feel free to share them via GitHub.