Skip to content

Commit

Permalink
Add action to "Capture Text"
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-pennyworth committed Jul 24, 2021
1 parent 4ea0745 commit 10798ed
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

### Requiremens
- [Alfred 4](https://alfredapp.com/)
- [CleanShot X](https://cleanshot.com/) (version `3.5.1` or above)
- [CleanShot X](https://cleanshot.com/) (version `3.8.1` or above)

### Features
- Capture Area
Expand All @@ -20,6 +20,7 @@
- Capture Fullscreen and Pin to the Screen
- Capture Fullscreen and Annotate
- Capture Previous Area
- Capture Text using OCR
- Capture Window
- Capture Window and Pin to the Screen
- Capture Window and Annotate
Expand Down
Binary file modified icons.sketch
Binary file not shown.
Binary file added icons/capture-text.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -854,8 +854,8 @@ Check for updates: once a week</string>
</dict>
</dict>
<key>version</key>
<string>0.1.2</string>
<string>0.1.3</string>
<key>webaddress</key>
<string>https://github.com/mr-pennyworth/alfred-cleanshot</string>
<string>https://github.com/mr-pennyworth/alfred-cleanshot#readme</string>
</dict>
</plist>
10 changes: 10 additions & 0 deletions items.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,16 @@ cat <<EOF
},
"uid": "capture-window-and-annotate"
},
{
"title": "Capture Text",
"subtitle": "Capture text from a specific area on your screen.",
"match": "capture text, recognize text, ocr",
"arg": "capture-text",
"icon": {
"path": "icons/capture-text.png"
},
"uid": "capture-text"
},
EOF

if ./pngpaste /tmp/img.png; then
Expand Down
3 changes: 3 additions & 0 deletions scripts/capture-text.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

open -g "cleanshot://capture-text"

0 comments on commit 10798ed

Please sign in to comment.