mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17: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
|
||||
|
||||
|
@ -58,7 +58,11 @@ easier to scroll through.")
|
||||
(evil-define-key 'normal elfeed-search-mode-map
|
||||
"q" #'elfeed-kill-buffer
|
||||
"r" #'elfeed-search-update--force
|
||||
(kbd "M-RET") #'elfeed-search-browse-url)))
|
||||
(kbd "M-RET") #'elfeed-search-browse-url)
|
||||
(map! (:map elfeed-show-mode-map
|
||||
:n "gc" nil
|
||||
:n "gc" #'+rss/copy-link))))
|
||||
|
||||
|
||||
|
||||
(use-package! elfeed-org
|
||||
|
Reference in New Issue
Block a user