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:
parent
c92937f890
commit
279a897862
2 changed files with 13 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue