drnic / copy-as-rtf-tmbundle

Copy as RTF - a TextMate bundle to make copying syntax highlighted text into Keynote, etc easy peasy
http://macromates.com
210 stars 9 forks source link

Doesn't work in TextMate 2 #4

Open EliW opened 11 years ago

EliW commented 11 years ago

The update to Mavericks made me switch to TextMate 2 ... and this was throwing lots of errors.

I fixed it, by updating line one to be:

!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -rjcode -Ku

I'd submit a pull request, but I'm unsure how you want to handle this Dr. Nic. IE: Is there a better fix that will make it Ruby 1.8 and Ruby 2.0 compatible? Do you just want to update this to be TextMate 2 / Ruby 2.0 compatible only now? Or do you want to actually make a separate bundle for each?

kanatti commented 7 years ago

I am getting the following error.

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:inrequire': cannot load such file -- jcode (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require'

Wolfr commented 7 years ago

I have the same error @baluKanattil and applying the fix by @EliW does not work on Sierra. I hope someone can make a newer version that works.

torsteins commented 6 years ago

I have the same issue

rgov commented 6 years ago

It's not needed in TextMate 2, as this feature is built-in.

⚙︎ (or Bundles) → TextMate → Copy Document as RTF (⌃⌥⌘C)

vegerot commented 6 years ago

@rgov I don't see this option. Running TextMate 2.0-rc.10

rgov commented 6 years ago

@vegerot Don't know what to tell you though, it's in the source code. Make sure the "TextMate" bundle is enabled in Preferences.

vegerot commented 6 years ago

Odd. I don't see see that here

rgov commented 6 years ago

Try using the Bundle Editor, TextMate → Menu Actions → Copy Document/Selection as RTF and make sure that "Enable this item" is checked. I'd also remove the two copy-with-style bundles you installed and make sure they're not conflicting.

vegerot commented 6 years ago

I don't see that option there. But I do see a ruby script for it. I also removed those two bundles

Edit: Removing those two bundles fixed it. Thank you!!