Skip to content

TheDecipherist/clip2path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clip2Path

Paste clipboard images as file paths directly into your terminal. Perfect for CLI tools like Claude Code that accept image paths but can't receive clipboard data.

Features

  • Paste images as paths - Press Ctrl+Shift+V (or Cmd+Shift+V on Mac) in the terminal to save a clipboard image and paste its path
  • Cross-platform - Works on Windows, macOS, and Linux
  • Configurable - Choose save directory, file prefix, image format, and quote style
  • Smart fallback - If no image in clipboard, performs regular paste

Installation

  1. Open VS Code
  2. Go to Extensions (Ctrl+Shift+X)
  3. Search for "Clip2Path"
  4. Click Install

Usage

  1. Take a screenshot or copy an image to clipboard
  2. Focus on a terminal in VS Code
  3. Press Ctrl+Shift+V (or Cmd+Shift+V on Mac)
  4. The image is saved and its path is pasted into the terminal

Configuration

Setting Default Description
clip2path.saveDirectory System temp Directory to save images
clip2path.filePrefix clipboard- Prefix for saved files
clip2path.imageFormat png Image format (png or jpg)
clip2path.quoteStyle single Quote style for paths with spaces

Requirements

Linux

Requires xclip installed:

sudo apt install xclip

macOS

Works out of the box. For better performance, install pngpaste:

brew install pngpaste

Windows

Works out of the box (uses PowerShell).

Why?

CLI tools like Claude Code are powerful but can't receive images from the clipboard. This extension bridges that gap - take a screenshot, press a key, and the path is ready to use.

License

MIT

Links

About

Paste clipboard images as file paths into the terminal. Perfect for CLI tools like Claude Code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors