You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No time for a PR and I bet someone uses the shell-expansion I removed, so this is just to gauge interest and give others that need it a solution as a start:
(defunorg-download-edit ()
"Open the image at point for editing."
(interactive)
(let ((context (org-element-context)))
(if (not (eq (car-safe context) 'link))
(user-error"Not on a link")
(let* ((filename (url-unhex-string (plist-get (cadr (org-element-context)) :path)))
(filepath (org-attach-expand filename)))
(start-process-shell-command"org-download-edit""org-download-edit"
(format org-download-edit-cmd filepath))))))
In my config I now have:
(defunmy/org-download-edit ()
"Open the image at point for editing."
(interactive)
(let ((context (org-element-context)))
(if (not (eq (car-safe context) 'link))
(user-error"Not on a link")
(let* ((filename (url-unhex-string (plist-get (cadr (org-element-context)) :path)))
(filepath (org-attach-expand filename)))
(start-process-shell-command"org-download-edit""org-download-edit"
(format org-download-edit-cmd filepath))))))
(advice-add'org-download-edit:override'my/org-download-edit)
The text was updated successfully, but these errors were encountered:
floli
added a commit
to floli/org-download
that referenced
this issue
Oct 25, 2021
No time for a PR and I bet someone uses the shell-expansion I removed, so this is just to gauge interest and give others that need it a solution as a start:
In my config I now have:
The text was updated successfully, but these errors were encountered: