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

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

[elpa] master 00d1c95 06/12: ivy-resume now works for functions that sup


From: Oleh Krehel
Subject: [elpa] master 00d1c95 06/12: ivy-resume now works for functions that supply action
Date: Sun, 03 May 2015 11:04:53 +0000

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

    ivy-resume now works for functions that supply action
    
    ivy.el (ivy-resume): Use action
    
    Functions like `counsel-describe-funtion' and `counsel-describe-varible'
    are now resume-able: after finishing with "RET" or breaking out with
    "C-g" it's possible to resume the query in the same state as it
    was (same collection, input, index).
    
    With:
    
    (global-set-key (kbd "C-c C-r") 'ivy-resume)
    
    it's possible to e.g.:
    
    - "F1 f" info read "RET" to describe Info-breadcrumbs
    - "C-c C-r" "C-n" to describe Info-read-node-name
    - "C-c C-r" "C-n" to describe Info-read-node-name-1
    ...
---
 ivy.el |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ivy.el b/ivy.el
index 0e40d68..49568d5 100644
--- a/ivy.el
+++ b/ivy.el
@@ -312,7 +312,8 @@ candidate."
    :preselect ivy--current
    :keymap (ivy-state-keymap ivy-last)
    :update-fn (ivy-state-update-fn ivy-last)
-   :sort (ivy-state-sort ivy-last)))
+   :sort (ivy-state-sort ivy-last)
+   :action (ivy-state-action ivy-last)))
 
 (defun ivy-beginning-of-buffer ()
   "Select the first completion candidate."



reply via email to

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