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

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

[elpa] master eee9716 236/399: Add open in dired action to counsel-file-


From: Oleh Krehel
Subject: [elpa] master eee9716 236/399: Add open in dired action to counsel-file-jump
Date: Sat, 20 Jul 2019 14:57:31 -0400 (EDT)

branch: master
commit eee9716443450d5c633fb3e5066670670a625f92
Author: Manuel Uberti <address@hidden>
Commit: Oleh Krehel <address@hidden>

    Add open in dired action to counsel-file-jump
    
    See: https://emacs.stackexchange.com/a/50414/5514
    
    Fixes #2057
---
 counsel.el | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/counsel.el b/counsel.el
index 2708c29..139e5f1 100644
--- a/counsel.el
+++ b/counsel.el
@@ -2505,6 +2505,12 @@ INITIAL-DIRECTORY, if non-nil, is used as the root 
directory for search."
               :keymap counsel-find-file-map
               :caller 'counsel-file-jump)))
 
+(ivy-set-actions
+ 'counsel-file-jump
+ `(("d" ,(lambda (x)
+           (dired (or (file-name-directory x) default-directory)))
+    "open in dired")))
+
 (defcustom counsel-dired-jump-args ". -name '.git' -prune -o -type d -print | 
cut -c 3-"
   "Arguments for the `find-command' when using `counsel-dired-jump'."
   :type 'string)



reply via email to

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