Skip to main content

Swap a file with the contents of the clipboard after the user approves a diff

Project description

clip-swap

Swap a file with the contents of the clipboard after the user approves a diff.

This is unreviewed ai-generated code. But I use it.

Motivation

Tools like claude code are nice. But sometimes I want to do some light coding in an LLM. I then use copy and paste to move code around. This adds a diff to this.

Alternatives and prior work

Use git diff - but you might be feeliing extra lazy.

Installation

pipx install clip-swap

Usage

Copy the file contents

clip-swap file

About

I am @readwithai. I make tools for reading and agency with and without Obsidian and AI. I also make a stream of small tools like this related to my work.

If you are interested in reading or note taking or Obsidian, check out my blog at readwithai.substack.com.

If you are interested in a stream of tools, you can follow me on GitHub or follow me on X.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clip_swap-0.1.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clip_swap-0.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file clip_swap-0.1.0.tar.gz.

File metadata

  • Download URL: clip_swap-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for clip_swap-0.1.0.tar.gz
Algorithm Hash digest
SHA256 aa5607c5c543b9f8a1c8a9fb869826ff857741ed55116466382e19b1b588df94
MD5 f05c696651da4d8b884afc4d0f51a238
BLAKE2b-256 bb4d300a0fa4d72374d218aff65c97b527979b2e367813ddcf1eb87f3e4b420e

See more details on using hashes here.

File details

Details for the file clip_swap-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: clip_swap-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for clip_swap-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a87d011d04808773ca6362a5d050af48a56f9137e55c0103ddc6e20db480f3d5
MD5 dc6528082b46849ad7746f499b656363
BLAKE2b-256 cbaefae29bc582c9a0898c67bf32918914c4732621ef2e63d02791aa54cd24d2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page