branch: master commit 2a0a25d272f03e324cd3f345e1cbe9fff8ea3b78 Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
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)