Skip to content

Instantly share code, notes, and snippets.

@waltonjones
Created December 3, 2014 05:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save waltonjones/e19eddb0e6e1e81843e1 to your computer and use it in GitHub Desktop.
Save waltonjones/e19eddb0e6e1e81843e1 to your computer and use it in GitHub Desktop.
Shell script for use in Keyboard Maestro macro to mimic "QuickCursor" with Sublime Text
export __CF_USER_TEXT_ENCODING=0x1F5:0x8000100:0x8000100
TMPFILE=`mktemp /tmp/XXXXXX`
/usr/bin/pbpaste > $TMPFILE
echo $TMPFILE
~/bin/subl -w $TMPFILE:10000000:10000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment