-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
74 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>Version</key> | ||
<integer>1</integer> | ||
<key>Extension Name</key> | ||
<string>Redact</string> | ||
<key>Extension Identifier</key> | ||
<string>de.marcgoertz.popclip.extension.redact</string> | ||
<key>Extension Description</key> | ||
<string>Redact the selected text.</string> | ||
<key>Actions</key> | ||
<array> | ||
<dict> | ||
<key>After</key> | ||
<string>paste-result</string> | ||
<key>Image File</key> | ||
<string>redact.png</string> | ||
<key>Script Interpreter</key> | ||
<string>/usr/bin/php</string> | ||
<key>Shell Script File</key> | ||
<string>redact.php</string> | ||
<key>Title</key> | ||
<string>Redact</string> | ||
</dict> | ||
</array> | ||
<key>Options</key> | ||
<array> | ||
<dict> | ||
<key>Option Identifier</key> | ||
<string>symbol</string> | ||
<key>Option Label</key> | ||
<string>Redacting symbol</string> | ||
<key>Option Type</key> | ||
<string>string</string> | ||
<key>Option Default Value</key> | ||
<string>▬</string> | ||
</dict> | ||
</array> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?php | ||
mb_internal_encoding('UTF-8'); | ||
$input = getenv('POPCLIP_TEXT'); | ||
$length = mb_strlen($input); | ||
$symbol = getenv('POPCLIP_OPTION_SYMBOL'); | ||
echo str_repeat($symbol, $length); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.