commit b7e2b40112adf7419457639c0d00ce4451fd8269
parent b4891bc9596061f09714e09590e23f6003891d13
Author: Oleh Krehel <ohwoeowho@gmail.com>
Date: Tue, 15 Oct 2019 11:38:38 +0200
org-download.el (org-download-annotate-default): Insert "screenshot" for screenshots
Reduce clutter, since the screenshot file location is temporary.
Fixes #109
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/org-download.el b/org-download.el
@@ -358,7 +358,9 @@ The screenshot tool is determined by `org-download-screenshot-method'."
(defun org-download-annotate-default (link)
"Annotate LINK with the time of download."
(format "#+DOWNLOADED: %s @ %s\n"
- link
+ (if (equal link org-download-screenshot-file)
+ "screenshot"
+ link)
(format-time-string "%Y-%m-%d %H:%M:%S")))
(defvar org-download-annotate-function