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

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

[elpa] master 2a0a25d 117/167: counsel.el (counsel-locate): Add INTIAL-I


From: Oleh Krehel
Subject: [elpa] master 2a0a25d 117/167: counsel.el (counsel-locate): Add INTIAL-INPUT arg
Date: Tue, 08 Dec 2015 10:50:25 +0000

branch: master
commit 2a0a25d272f03e324cd3f345e1cbe9fff8ea3b78
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    counsel.el (counsel-locate): Add INTIAL-INPUT arg
    
    Fixes #289
---
 counsel.el |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/counsel.el b/counsel.el
index 8bfcbdc..9b208c7 100644
--- a/counsel.el
+++ b/counsel.el
@@ -646,10 +646,12 @@ Update the minibuffer with the amount of lines collected 
every
       (delete-process process))))
 
 ;;;###autoload
-(defun counsel-locate ()
-  "Call locate shell command."
+(defun counsel-locate (&optional initial-input)
+  "Call the \"locate\" shell command.
+INITIAL-INPUT can be given as the initial minibuffer input."
   (interactive)
   (ivy-read "Locate: " #'counsel-locate-function
+            :initial-input initial-input
             :dynamic-collection t
             :history 'counsel-locate-history
             :action (lambda (file)



reply via email to

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