https://github.com/l-lumin/clipreplace
Simple command-line tool to replace a section of text in a file with clipboard content
https://github.com/l-lumin/clipreplace
cli clipboard python
Last synced: about 1 year ago
JSON representation
Simple command-line tool to replace a section of text in a file with clipboard content
- Host: GitHub
- URL: https://github.com/l-lumin/clipreplace
- Owner: l-lumin
- License: mit
- Created: 2025-01-10T17:28:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-14T20:36:34.000Z (over 1 year ago)
- Last Synced: 2025-04-10T23:16:55.645Z (over 1 year ago)
- Topics: cli, clipboard, python
- Language: Python
- Homepage: https://l-lumin.github.io/clipreplace/
- Size: 67.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ClipReplace
[](https://github.com/l-lumin/clipreplace/actions/workflows/test.yml)
**ClipReplace** is a simple command-line tool to replace a section of text in a file with clipboard content.
## Installation
Install `clipreplace` using `pipx`:
```sh
pipx install clipreplace
```
## Usage
1. Copy text to your clipboard
2. Run the command:
```sh
clipreplace --file
```
3. If the first line of the clipboard matches a line in the file, the match section will be replaced with the clipboard content.
## License
This project is licensed under the MIT License.