branch: externals/ivy-hydra
commit 56807a19199bfa9ffa79b0f75b1467667fbf484d
Author: SeungKi Kim <[email protected]>
Commit: SeungKi Kim <[email protected]>
counsel.el (counsel-recentf): Add "d" action
---
counsel.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/counsel.el b/counsel.el
index d39debc..fe74515 100644
--- a/counsel.el
+++ b/counsel.el
@@ -2243,7 +2243,9 @@
https://www.freedesktop.org/wiki/Specifications/desktop-bookmark-spec/."
'counsel-recentf
'(("j" find-file-other-window "other window")
("f" find-file-other-frame "other frame")
- ("x" counsel-find-file-extern "open externally")))
+ ("x" counsel-find-file-extern "open externally")
+ ("d" (lambda (file) (setq recentf-list (delete file recentf-list)))
+ "delete from recentf")))
(defun counsel-recentf-candidates ()
"Return candidates for `counsel-recentf'.