[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy-hydra da0b272 281/395: ivy.el (ivy--call-marked): H
From: |
Basil L. Contovounesios |
Subject: |
[elpa] externals/ivy-hydra da0b272 281/395: ivy.el (ivy--call-marked): Handle alists |
Date: |
Thu, 25 Feb 2021 08:32:20 -0500 (EST) |
branch: externals/ivy-hydra
commit da0b272e8a421b3ffbabd0e2b1b419d797ab3a8f
Author: Oleh Krehel <ohwoeowho@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>
ivy.el (ivy--call-marked): Handle alists
* ivy-test.el (ivy-read-alist-multi-cands): Add test.
Fixes #2568
---
ivy-test.el | 12 ++++++++++++
ivy.el | 2 +-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/ivy-test.el b/ivy-test.el
index 02c8b3f..fd0b463 100644
--- a/ivy-test.el
+++ b/ivy-test.el
@@ -209,6 +209,18 @@ Since `execute-kbd-macro' doesn't pick up a let-bound
`default-directory'.")
"C-m")
'(("b" . "1") ("a" . "2")))))
+(ert-deftest ivy-read-alist-multi-cands ()
+ (should
+ (equal
+ (ivy-with '(let (acc)
+ (ivy-read "test: "
+ '(("Key 1" . "Data 1") ("Key 2" . "Data 2"))
+ :action (lambda (x) (push x acc)))
+ acc)
+ "M-a RET")
+ '(("Key 2" . "Data 2")
+ ("Key 1" . "Data 1")))))
+
(ert-deftest ivy-read-sort-def ()
(should (equal (ivy-with '(ivy-read "Test: " '("1" "2") :def '("a" "b" "c"))
"C-m")
diff --git a/ivy.el b/ivy.el
index 27f904c..08c93d4 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1536,7 +1536,7 @@ See variable `ivy-recursive-restore' for further
information."
(funcall multi-action marked-candidates))
(dolist (c marked-candidates)
(let ((default-directory (ivy-state-directory ivy-last)))
- (funcall action c))))))
+ (funcall action (ivy--call-cand c)))))))
(defun ivy--call-cand (current)
(let ((collection (ivy-state-collection ivy-last)))
- [elpa] externals/ivy-hydra 1b6f3cf 244/395: Improve ivy-switch-buffer-transformer, (continued)
- [elpa] externals/ivy-hydra 1b6f3cf 244/395: Improve ivy-switch-buffer-transformer, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 68ce6e6 384/395: Mention caveats for non-exiting commands in manual, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 1deef76 394/395: Bump version to point release 0.13.2, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 4235010 387/395: Re-revert last change to ivy-update-candidates, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra d8ed11e 388/395: Make ivy-switch-buffer-kill respect current predicate, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra c1a61dc 084/395: ivy-test.el (ivy-empty-directory-open): Test opening empty directory, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 316d4dd 232/395: counsel-kmacro: Create actions for cycling the ring and setting a saved counter value., Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 38c90e8 196/395: ivy.el (ivy-switch-buffer-transformer): Move ivy-remote logic here, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra fff899a 237/395: counsel.el (counsel--sync-sentinel-on-exit): Try not to reset index to 0, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra a2c86c0 273/395: ivy.el (ivy-completion-in-region): Fixup, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra da0b272 281/395: ivy.el (ivy--call-marked): Handle alists,
Basil L. Contovounesios <=
- [elpa] externals/ivy-hydra a37ec22 279/395: Revert "ivy.el (ivy--update-minibuffer): don't filter while there's input", Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 05d892d 282/395: counsel-grep/ag/rg/pt: use subprocess instead of shell command, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra b173441 326/395: Fix for ivy-immediate-done with counsel-M-x, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra d539306 307/395: Revert "ivy.el (ivy-display-style): Remove", Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 1095e42 298/395: ivy.el (ivy-alt-done-functions-alist): Add, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 7774867 335/395: Guard against null Org heading, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 7b9391f 320/395: ivy-avy.el: Fix typo, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 6bfada5 359/395: ivy.el: Use ivy--completing-fname-p more, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 7e4c567 350/395: Makefile: Make plain.el load counsel instead of here, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 5db2513 341/395: Recognize remote executables in Emacs >= 27.1., Basil L. Contovounesios, 2021/02/25