Copy to clipboard not storing mime type
rozza opened this issue · comments
Using sublime.set_clipboard(pygmented)
stores the formatted output, but doesn't store mimetype details so when I paste I get the raw RTF output.
Currently working round like so:
filename = '%s.%s' % (self.view.id(), output_type,)
tmp_file = self.write_file(filename, pygmented)
subprocess.call("cat %s | pbcopy -prefer %s" % (tmp_file, output_type), shell=True)
os.remove(tmp_file)
But that mac only...
Thanks again :)
I'm not closing the issue because I may add support for the same feature for other platforms in the future.
Problem confirmed under Linux :) Couldn't find a way to specify mimetype using xclip
so far!
Even kenneth's xerox does not seem to address the issue...
Will be there any changes?
Whenever anybody comes with a patch.