commit ec2dc69b7a49054bc0d34c6533cdcadba708db67
parent b734cc2e9741a2054f1264e6b9e6ae09f59343ae
Author: xuliang <qiangqibing@gmail.com>
Date: Sat, 13 Aug 2016 21:39:16 +0800
org-download-image: interactive input with name completion
Fixes #35
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/org-download.el b/org-download.el
@@ -278,7 +278,9 @@ It's inserted before the image link and is used to annotate it.")
(defun org-download-image (link)
"Save image at address LINK to `org-download--dir'."
- (interactive "sUrl: ")
+ (interactive
+ (list
+ (read-file-name "Open file:")))
(let (ext)
(unless (image-type-from-file-name link)
(with-current-buffer (url-retrieve-synchronously link t)