[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 1606918 129/399: ivy.el (ivy-read): Allow :update-fn to be
From: |
Oleh Krehel |
Subject: |
[elpa] master 1606918 129/399: ivy.el (ivy-read): Allow :update-fn to be 'auto |
Date: |
Sat, 20 Jul 2019 14:57:08 -0400 (EDT) |
branch: master
commit 1606918a8d6416577fd0e7b3be1f4b7865e19fbc
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
ivy.el (ivy-read): Allow :update-fn to be 'auto
---
counsel.el | 3 +--
ivy.el | 6 +++++-
swiper.el | 6 ++----
3 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/counsel.el b/counsel.el
index 43200db..970da1b 100644
--- a/counsel.el
+++ b/counsel.el
@@ -2817,8 +2817,7 @@ When non-nil, INITIAL-INPUT is the initial search
pattern."
:keymap counsel-grep-map
:history 'counsel-grep-history
- :update-fn (lambda ()
- (counsel-grep-action
(ivy-state-current ivy-last)))
+ :update-fn 'auto
:re-builder #'ivy--regex
:action #'counsel-grep-action
:unwind (lambda ()
diff --git a/ivy.el b/ivy.el
index b41a6be..dbfd6e2 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1892,7 +1892,11 @@ customizations apply to the current completion session."
:history history
:preselect preselect
:keymap keymap
- :update-fn update-fn
+ :update-fn (if (eq update-fn 'auto)
+ (lambda ()
+ (funcall (ivy--get-action ivy-last)
+ (ivy-state-current ivy-last)))
+ update-fn)
:sort sort
:action action
:frame (selected-frame)
diff --git a/swiper.el b/swiper.el
index 32ecaf4..4739ac0 100644
--- a/swiper.el
+++ b/swiper.el
@@ -1046,8 +1046,7 @@ See `ivy-format-function' for further information."
(ivy-read "swiper-all: " 'swiper-all-function
:action #'swiper-all-action
:unwind #'swiper--cleanup
- :update-fn (lambda ()
- (swiper-all-action (ivy-state-current ivy-last)))
+ :update-fn 'auto
:dynamic-collection t
:keymap swiper-all-map
:initial-input initial-input
@@ -1157,8 +1156,7 @@ See `ivy-format-function' for further information."
"iswiper: " #'swiper-isearch-function
:dynamic-collection t
:action #'swiper-isearch-action
- :update-fn (lambda ()
- (swiper-isearch-action (ivy-state-current
ivy-last)))
+ :update-fn 'auto
:unwind #'swiper--cleanup
:history 'swiper-history
:caller 'swiper-isearch))
- [elpa] master b27ef9e 111/399: counsel.el (counsel-git-cands): Extract, (continued)
- [elpa] master b27ef9e 111/399: counsel.el (counsel-git-cands): Extract, Oleh Krehel, 2019/07/20
- [elpa] master 1b5af1e 115/399: counsel.el (counsel-file-jump-args): Adjust, Oleh Krehel, 2019/07/20
- [elpa] master 05763ae 121/399: counsel.el (counsel-git): Fix default-directory, Oleh Krehel, 2019/07/20
- [elpa] master aef1242 118/399: ivy-overlay.el (ivy-overlay-impossible-p): Simplify, Oleh Krehel, 2019/07/20
- [elpa] master 3cb9d72 120/399: ivy-overlay.el (ivy-display-function-overlay): Fix weird offset, Oleh Krehel, 2019/07/20
- [elpa] master ea6ef81 122/399: Allow recursive minibuffers to use ivy-display-function-alist, Oleh Krehel, 2019/07/20
- [elpa] master 5e54abd 123/399: Fix counsel-org-tag-agenda, Oleh Krehel, 2019/07/20
- [elpa] master 1998783 125/399: counsel.el (counsel-find-file-ignore-regexp): Add nested hidden dotfiles, Oleh Krehel, 2019/07/20
- [elpa] master bb5d0d4 119/399: ivy-overlay.el (ivy-display-function-overlay): Refactor, Oleh Krehel, 2019/07/20
- [elpa] master f9b64c3 126/399: swiper.el (swiper-isearch): Add, Oleh Krehel, 2019/07/20
- [elpa] master 1606918 129/399: ivy.el (ivy-read): Allow :update-fn to be 'auto,
Oleh Krehel <=
- [elpa] master f4431d4 133/399: doc/ivy.org (automatically integrated packages): Add, Oleh Krehel, 2019/07/20
- [elpa] master 0465711 124/399: counsel.el (counsel-org-tag-agenda): Check org-version, Oleh Krehel, 2019/07/20
- [elpa] master 3416142 128/399: counsel.el (counsel--async-sentinel): Fix index jumping randomly, Oleh Krehel, 2019/07/20
- [elpa] master 31a554d 130/399: swiper.el (swiper-isearch): Anchor to line-beginning-position, Oleh Krehel, 2019/07/20
- [elpa] master adad2e4 127/399: counsel.el: Strip space from initial input of counsel-package, Oleh Krehel, 2019/07/20
- [elpa] master df8901f 132/399: swiper.el (swiper-query-replace): Add preview overlays, Oleh Krehel, 2019/07/20
- [elpa] master dc3f469 131/399: swiper.el (swiper-isearch): Extend, Oleh Krehel, 2019/07/20
- [elpa] master bc479ed 134/399: swiper.el (swiper-isearch): Fix minibuffer height, Oleh Krehel, 2019/07/20
- [elpa] master fa2e02d 137/399: ivy-overlay.el (ivy-cursor): Customize for dark background, Oleh Krehel, 2019/07/20
- [elpa] master 8edde1c 135/399: swiper.el (swiper-isearch): Change prompt, Oleh Krehel, 2019/07/20