[TxMt] Select pasted text

Allan Odgaard throw-away-1 at macromates.com
Sat Feb 24 22:07:10 UTC 2007


On 24. Feb 2007, at 18:28, Thomas Aylott (subtleGradient) wrote:

> #!/usr/bin/env ruby
> require ENV['TM_SUPPORT_PATH'] + "/lib/escape.rb"
> print "${0:#{e_snp(`pbpaste`)}}"

If you need to paste more than plain ASCII, you unfortunately need to  
invoke pbpaste as shown below:

     #!/usr/bin/env ruby
     require ENV['TM_SUPPORT_PATH'] + "/lib/escape.rb"
     print "${0:#{e_snp(`__CF_USER_TEXT_ENCODING=$UID: 
0x8000100:0x8000100 pbpaste`)}}"




More information about the textmate mailing list