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

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

[elpa] master e23c175 039/272: Insert intermediate candidates during asy


From: Oleh Krehel
Subject: [elpa] master e23c175 039/272: Insert intermediate candidates during async completions
Date: Mon, 25 Apr 2016 10:13:15 +0000

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

    Insert intermediate candidates during async completions
    
    * counsel.el (counsel--async-filter): Update.
    
    Fixes #340
---
 counsel.el |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/counsel.el b/counsel.el
index e9baba0..c99b801 100644
--- a/counsel.el
+++ b/counsel.el
@@ -596,9 +596,12 @@ Update the minibuffer with the amount of lines collected 
every
            (time-since counsel--async-time))
       (with-current-buffer (process-buffer process)
         (goto-char (point-min))
-        (setq size (- (buffer-size) (forward-line (buffer-size)))))
-      (ivy--insert-minibuffer
-       (format "\ncollected: %d" size))
+        (setq size (- (buffer-size) (forward-line (buffer-size))))
+        (setq ivy--all-candidates
+              (split-string (buffer-string) "\n" t)))
+      (let ((ivy--prompt (format "%d++ ag:" size)))
+        (ivy--insert-minibuffer
+         (ivy--format ivy--all-candidates)))
       (setq counsel--async-time (current-time)))))
 
 (defun counsel-locate-action-extern (x)



reply via email to

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