[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 778c615 013/348: ivy.el (ivy-add-actions): New function
From: |
Oleh Krehel |
Subject: |
[elpa] master 778c615 013/348: ivy.el (ivy-add-actions): New function |
Date: |
Sat, 8 Apr 2017 11:03:14 -0400 (EDT) |
branch: master
commit 778c61583ab03732df08fdf87fa9bbc1a94b8cdc
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
ivy.el (ivy-add-actions): New function
Fixes #470
---
ivy.el | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/ivy.el b/ivy.el
index a1bda77..857f738 100644
--- a/ivy.el
+++ b/ivy.el
@@ -177,6 +177,15 @@ Only \"./\" and \"../\" apply here. They appear in reverse
order."
(setq ivy--actions-list
(plist-put ivy--actions-list cmd actions)))
+(defun ivy-add-actions (cmd actions)
+ "Add CMD extra exit points to ACTIONS."
+ (setq ivy--actions-list
+ (plist-put ivy--actions-list cmd
+ (delete-dups
+ (append
+ actions
+ (plist-get ivy--actions-list cmd))))))
+
(defvar ivy--display-transformers-list nil
"A list of str->str transformers per command.")
- [elpa] master updated (4bfb692 -> e1351c8), Oleh Krehel, 2017/04/08
- [elpa] master f90ae3f 002/348: doc/ivy.org: Bump version, Oleh Krehel, 2017/04/08
- [elpa] master c875668 010/348: counsel.el (counsel-mode-map): Add counsel-info-lookup-symbol, Oleh Krehel, 2017/04/08
- [elpa] master b7b4758 007/348: ivy.el: Autoload ivy-read, Oleh Krehel, 2017/04/08
- [elpa] master 4a24514 001/348: doc/Changelog.org: Improve for export to HTML, Oleh Krehel, 2017/04/08
- [elpa] master 778c615 013/348: ivy.el (ivy-add-actions): New function,
Oleh Krehel <=
- [elpa] master fd4fd36 011/348: ivy-hydra.el: Fix hydra self-install, Oleh Krehel, 2017/04/08
- [elpa] master ff415c0 012/348: fixed typos, Oleh Krehel, 2017/04/08
- [elpa] master 23d7c74 015/348: Fix previous commit, Oleh Krehel, 2017/04/08
- [elpa] master 6c669ff 014/348: File sorting function using a priority order for extensions, Oleh Krehel, 2017/04/08
- [elpa] master 9407b21 021/348: swiper.el (swiper-action-recenter): New defcustom, Oleh Krehel, 2017/04/08
- [elpa] master f3690b6 019/348: Make "M-o j" consistent for ivy-switch-buffer and counsel-find-file, Oleh Krehel, 2017/04/08
- [elpa] master 79ffa67 009/348: ivy.el (ivy--filter): Recompute index after sort, Oleh Krehel, 2017/04/08
- [elpa] master c2646d4 020/348: counsel.el (counsel-load-theme-action): Update, Oleh Krehel, 2017/04/08
- [elpa] master aadc062 024/348: ivy-test.el: Add a provide statement, Oleh Krehel, 2017/04/08
- [elpa] master eba0d9e 008/348: swiper.el (swiper--ivy): Remove interactive, Oleh Krehel, 2017/04/08