emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 3a7c8cd 189/348: counsel.el (counsel-recentf): add extra a


From: Oleh Krehel
Subject: [elpa] master 3a7c8cd 189/348: counsel.el (counsel-recentf): add extra actions
Date: Sat, 8 Apr 2017 11:03:53 -0400 (EDT)

branch: master
commit 3a7c8cdf0a386577b25b5ba4c387d39366d1552a
Author: Zak B. Elep <address@hidden>
Commit: Zak B. Elep <address@hidden>

    counsel.el (counsel-recentf): add extra actions
    
    Let `counsel-recentf` be able to open recent files into another window,
    or even via an external application.
---
 counsel.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/counsel.el b/counsel.el
index d11f8d1..8404f24 100644
--- a/counsel.el
+++ b/counsel.el
@@ -1411,8 +1411,12 @@ When INITIAL-INPUT is non-nil, use it in the minibuffer 
during completion."
   (ivy-read "Recentf: " recentf-list
             :action (lambda (f)
                       (with-ivy-window
-                        (find-file f)))
+                       (find-file f)))
             :caller 'counsel-recentf))
+(ivy-set-actions
+ 'counsel-recentf
+ '(("j" find-file-other-window "other-window")
+   ("x" counsel-find-file-extern "open externally")))
 
 ;;** `counsel-locate'
 (defcustom counsel-locate-cmd (cond ((eq system-type 'darwin)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]