Skip to content

Commit

Permalink
0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
b1tg committed Feb 11, 2021
1 parent 8eb82c2 commit 70bd5da
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 37 deletions.
25 changes: 1 addition & 24 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pickup"
version = "0.1.0"
version = "0.2.0"
authors = ["b1"]
edition = "2018"

Expand All @@ -10,9 +10,6 @@ glob = "0.3.0"
anyhow = "1.0.38"

[target.'cfg(target_os = "macos")'.dependencies]
objc = "0.2"
objc_id = "0.1"
objc-foundation = "0.1"
cocoa = "0.24.0"

[target.'cfg(target_os = "windows")'.dependencies]
Expand Down
22 changes: 15 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Pickup

Copy files to clipboard from command line, expecting to achieve the same effect as right-click copy.
Copy files to clipboard from command line, expecting to achieve the same effect as right-click copy. Now support Windows and OSX.


# How to use
Expand All @@ -15,10 +15,10 @@ Step 1: clone & build
git clone https://github.com/b1tg/pickup.git
cd pickup
cargo build --release
# you can find pickup.exe in ./target/release/
# you can find pickup or pickup.exe in ./target/release/
```

Step 2 (optional): add `pickup.exe` to you PATH
Step 2 (optional): add `pickup` to you PATH

## Usage

Expand All @@ -29,18 +29,26 @@ Exameple:
# copy single file
pickup Cargo.toml
# copy all exe file in target subdirectories (need double quotation)
pickup "target/**/*.exe"
# copy all pdf file in target subdirectories (need double quotation)
pickup "docs/**/*.pdf"
# copy folder
pickup src
```
## Demo

### On Windows:

![demo on windows](./images/pickup-demo-win.gif)

![usage](./usage.gif)
### On OSX:
![demo on osx](./images/pickup-demo-osx.gif)



# References

- https://stackoverflow.com/q/25708895
- https://github.com/roryyorke/picellif
- https://github.com/roryyorke/picellif
- https://github.com/yujinqiu/pbadd
Binary file added images/pickup-demo-osx.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ Exameple:
# copy single file
pickup Cargo.toml
# copy all exe file in target subdirectories
pickup "target/**/*.exe"
# copy all pdf file in target subdirectories
pickup "docs/**/*.pdf"
# copy folder
pickup src
Expand Down

0 comments on commit 70bd5da

Please sign in to comment.