ox-clip - Cross-platform Formatted copy commands for org-mode
This module copies selected regions in org-mode as formatted text on the clipboard that can be pasted into other applications. When not in org-mode, the htmlize library is used instead.
For Windows the html-clip-w32.py script will be installed in the ox-clip install directory. It works pretty well, but I noticed that the hyperlinks in the TOC to headings don’t work, and strike-through doesn’t seem to work. I have no idea how to fix either issue.
Mac OSX needs textutils and pbcopy, which should be part of the standard utilities available on MacOSX.
Linux needs a relatively modern xclip. https://github.com/astrand/xclip
There is one command: =ox-clip-formatted-copy that should work across Windows, Mac and Linux. I recommend you bind this to a key. I like H-k (Hyper-k).
Note: This file was extracted from https://github.com/jkitchin/scimax to make a smaller repo for MELPA (see https://github.com/jkitchin/scimax/issues/21). I extracted it using this git wizardry from: http://www.pixelite.co.nz/article/extracting-file-folder-from-git-repository-with-full-git-history/. This seems to have retained the history on the file modifications.
cd /path/to/scimax git log --pretty=email --patch-with-stat --reverse --full-index --binary -- ox-clip.el > /tmp/patch cd ~/tmp mkdir ox-clip git init git am < /tmp/patch git remote add origin firstname.lastname@example.org:jkitchin/ox-clip.git git push -f origin master