diff --git a/info.plist b/info.plist index dc11bbf..fc89494 100644 --- a/info.plist +++ b/info.plist @@ -209,6 +209,7 @@ echo -n $dest {"imagefile":"json.png","title":"json","arg":"./to_json.sh","subtitle":"Convert to nice json"}, {"imagefile":"b64.png","title":"base64","arg":"./base64.sh","subtitle":"Convert to and from base64"}, {"imagefile":"redact.png","title":"redact","arg":"./redact.sh","subtitle":"Remove sensitive information"}, + {"imagefile":"redact.png","title":"unescape","arg":"./unescape.sh","subtitle":"Removed escaped characters"}, {"imagefile":"update.png","title":"update","arg":"update","subtitle":"Update to the latest and greatest"} ] keyword @@ -456,7 +457,7 @@ echo -n $dest ~/bin:~/.local/bin:~/.brew/opt/coreutils/libexec/gnubin:~/.brew/opt/make/libexec/gnubin:~/.brew/opt/grep/libexec/gnubin:~/.brew/opt/findutils/libexec/gnubin:~/Library/Python/3.7/bin:~/.brew/opt/python/libexec/bin:~/.brew/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin::~/.brew/opt/fzf/bin version - 0.3.1 + 0.4.0 webaddress https://github.com/mhristof/alfred-pbpaste diff --git a/unescape.sh b/unescape.sh new file mode 100755 index 0000000..350204c --- /dev/null +++ b/unescape.sh @@ -0,0 +1,8 @@ +#! /usr/bin/env bash +# http://redsymbol.net/articles/unofficial-bash-strict-mode/ +set -euo pipefail +IFS=$'\n\t' + +pbpaste | sed 's!\\"!"!g' + +exit 0