mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-09 12:57:25 -05:00
feat(rss): add +rss/copy-link command
Add the copy link function and bind it to `gc` as a way to draw similar comparisons to `go` which takes the entry link and sends it to the browser
This commit is contained in:
@ -54,7 +54,14 @@
|
||||
(forward-line -1)
|
||||
(call-interactively '+rss/open)))
|
||||
|
||||
|
||||
;;;###autoload
|
||||
(defun +rss/copy-link ()
|
||||
"Copy current link to clipboard."
|
||||
(interactive)
|
||||
(let ((link (elfeed-entry-link elfeed-show-entry)))
|
||||
(when link
|
||||
(kill-new link)
|
||||
(message "Copied %s to clipboard" link))))
|
||||
;;
|
||||
;; Hooks
|
||||
|
||||
|
Reference in New Issue
Block a user