commit 131d2409b3639798ebac6d77c98eae446ea915dc
parent 137c3d2aa083283a3fc853f9ecbbc03039bf397b
Author: Thomas Stenhaug <thomas.stenhaug@gmail.com>
Date: Sun, 4 Jun 2017 07:28:41 +0200
Add org-download-screenshot-methods for grabbing clipbard
Update documentation for new screenshot-backends
Fixes #52
Diffstat:
2 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
@@ -7,9 +7,10 @@ Point **A** (*the source*) can be:
3. A local or remote image address in kill-ring.
Use the `org-download-yank` command for this.
Remember that you can use "0 w" in `dired` to get an address.
-4. An screenshot taken using `gnome-screenshot` or `scrot` or `gm`.
- Use the `org-download-screenshot` command for this.
- Customize the backend with `org-download-screenshot-method`.
+4. A screenshot taken using `gnome-screenshot`, `scrot`, `gm`, `xclip`
+ (on Linux), `screencapture` (on OS X) or , `imagemagick/convert`
+ (on Windows). Use the `org-download-screenshot` command for this.
+ Customize the backend with `org-download-screenshot-method`.
Point **B** (*the target*) is an Emacs `org-mode` buffer where the inline
link will be inserted. Several customization options will determine
diff --git a/org-download.el b/org-download.el
@@ -131,10 +131,16 @@ will be used."
(const :tag "gnome-screenshot" "gnome-screenshot -a -f %s")
(const :tag "scrot" "scrot -s %s")
(const :tag "gm" "gm import %s")
- ;; screenshot script in osx, -i standars for iterative,
- ;; press space key to toggle bettwen selection and
+ ;; screenshot script in osx, -i stands for interactive,
+ ;; press space key to toggle between selection and
;; window/application mode.
- (const :tag "screencapture" "screencapture -i %s"))
+ (const :tag "screencapture" "screencapture -i %s")
+ ;; take an image that is already on the clipboard, for Linux
+ (const :tag "xclip"
+ "xclip -selection clipboard -t image/png -o > %s")
+ ;; take an image that is already on the clipboard, for Windows
+ (const :tag "imagemagick/convert" "convert clipboard: %s")
+ )
:group 'org-download)
(defcustom org-download-image-html-width 0