https://github.com/b1tg/pickup
Copy files to clipboard from command line (Windows/OSX/Linux)
https://github.com/b1tg/pickup
command-line-tool rust-lang windows
Last synced: 11 months ago
JSON representation
Copy files to clipboard from command line (Windows/OSX/Linux)
- Host: GitHub
- URL: https://github.com/b1tg/pickup
- Owner: b1tg
- License: mit
- Created: 2021-02-08T16:25:47.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-03-09T05:04:30.000Z (over 2 years ago)
- Last Synced: 2025-05-03T03:37:58.106Z (about 1 year ago)
- Topics: command-line-tool, rust-lang, windows
- Language: Rust
- Homepage:
- Size: 6.17 MB
- Stars: 18
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pickup
[中文文档](./README_CN.md)
Copy files to clipboard from command line, expecting to achieve the same effect as right-click copy. Now support Windows, OSX and Linux.
# How to use
## Build
Step 0: [install rust](https://rustup.rs/)
Step 1: clone & build
```sh
git clone https://github.com/b1tg/pickup.git
cd pickup
cargo build --release
# you can find pickup or pickup.exe in ./target/release/
```
Step 2 (optional): add `pickup` to you PATH
Step 3 (only for linux): install xclip
## Usage
```
Usage: pickup [file patterns]
Exameple:
# copy single file
pickup Cargo.toml
# copy all pdf file in target subdirectories (need double quotation)
pickup "docs/**/*.pdf"
# copy folder
pickup src
```
## Demo
### On Windows:

### On OSX:

# References
- https://stackoverflow.com/q/25708895
- https://github.com/roryyorke/picellif
- https://github.com/yujinqiu/pbadd