commit addb5eaacf2a833251e59dcb18f506dbf83f7248
parent d8f509f5ae35a868c9bdd579375097a9a4b40fed
Author: kiuuik <kiu@mailbox.org>
Date: Sun, 11 Mar 2018 15:28:42 +0100
org-download-rename-last-file - offer initial-input
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/org-download.el b/org-download.el
@@ -359,7 +359,7 @@ It's inserted before the image link and is used to annotate it.")
"Rename the last downloaded file saved in your computer."
(interactive)
(let* ((dir-path (org-download--dir))
- (newname (read-string "Rename last file to: "))
+ (newname (read-string "Rename last file to: " (file-name-base org-download-path-last-file)))
(ext (file-name-extension org-download-path-last-file))
(newpath (concat dir-path "/" newname "." ext)))
(when org-download-path-last-file