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

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

[elpa] master 92b802f 176/272: counsel.el (counsel-ag): Add dir prompt f


From: Oleh Krehel
Subject: [elpa] master 92b802f 176/272: counsel.el (counsel-ag): Add dir prompt for "C-u"
Date: Mon, 25 Apr 2016 10:13:24 +0000

branch: master
commit 92b802f519490d7558d2597a0619fb11d0adb648
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    counsel.el (counsel-ag): Add dir prompt for "C-u"
    
    Fixes #429
---
 counsel.el |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/counsel.el b/counsel.el
index 899e5e0..9a0b95a 100644
--- a/counsel.el
+++ b/counsel.el
@@ -1289,7 +1289,10 @@ command. %S will be replaced by the regex string. The 
default is
 (defun counsel-ag (&optional initial-input initial-directory)
   "Grep for a string in the current directory using ag.
 INITIAL-INPUT can be given as the initial minibuffer input."
-  (interactive)
+  (interactive
+   (list nil
+         (when current-prefix-arg
+           (read-directory-name "ag in directory: "))))
   (setq counsel--git-grep-dir (or initial-directory default-directory))
   (ivy-read (funcall counsel-prompt-function "ag")
             'counsel-ag-function



reply via email to

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