Skip to content

jkitchin/ox-clip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 

Repository files navigation

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 jkitchin/scimax#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 [email protected]:jkitchin/ox-clip.git
git push -f origin master

About

Copy formatted content from org-mode

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •