Permalink
Browse files

Send stdout to tooltip

  • Loading branch information...
1 parent 45720d6 commit 5bcd78c82972773676b8310706f0814ce6c48ac8 @drnic drnic committed Mar 20, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 Commands/Copy With Style.tmCommand
@@ -12,8 +12,8 @@
require "#{app_path}/Contents/SharedSupport/Bundles/TextMate.tmbundle/Support/lib/doctohtml.rb"
require "#{app_path}/Contents/SharedSupport/Support/lib/progress.rb"
unit = ENV.has_key?("TM_SELECTED_TEXT") ? "selection" : "document"
- TextMate.call_with_progress(:message => "Creating HTML version of #{unit}…") do
- print document_to_html( STDIN.read, :include_css => true )
+ TextMate.call_with_progress(:message => "Creating HTML version of #{unit}…") do
+ print document_to_html( STDIN.read, :include_css => true )
end'|textutil -convert rtf -stdin -stdout|pbcopy
echo 'Done!'</string>
<key>input</key>
@@ -25,8 +25,8 @@
<key>name</key>
<string>Copy with Style</string>
<key>output</key>
- <string>openAsNewDocument</string>
+ <string>showAsTooltip</string>
<key>uuid</key>
<string>BAAC7FD1-DC7C-4F18-AAD9-EFA93585451B</string>
</dict>
-</plist>
+</plist>

0 comments on commit 5bcd78c

Please sign in to comment.