Skip to content

Commit

Permalink
org-fu.el (orfu--handle-link-youtube-1): Save description to kill ring
Browse files Browse the repository at this point in the history
  • Loading branch information
abo-abo committed Aug 19, 2021
1 parent d6cda1e commit d8cd109
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion org-fu.el
Expand Up @@ -209,7 +209,10 @@ Try to remove superfluous information, like website title."
(channel (cdr (assoc 'uploader json))))
(when json
(let ((fname (expand-file-name (cdr (assoc '_filename json))))
(title (cdr (assoc 'title json))))
(title (cdr (assoc 'title json)))
(desc (cdr (assoc 'description json))))
(when desc
(kill-new desc))
(add-hook 'orfu-link-hook
`(lambda ()
,(concat (org-make-link-string fname title)
Expand Down

0 comments on commit d8cd109

Please sign in to comment.