[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 6b40d40 156/184: ivy.el (ivy--occur-press-update-window):
From: |
Oleh Krehel |
Subject: |
[elpa] master 6b40d40 156/184: ivy.el (ivy--occur-press-update-window): Re-use ivy-highlight-grep-commands |
Date: |
Wed, 16 Oct 2019 13:15:13 -0400 (EDT) |
branch: master
commit 6b40d40e04dc810e3cc2366f55936d19823a97a9
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
ivy.el (ivy--occur-press-update-window): Re-use ivy-highlight-grep-commands
---
ivy.el | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/ivy.el b/ivy.el
index 1c44f22..fa78cf0 100644
--- a/ivy.el
+++ b/ivy.el
@@ -4879,8 +4879,9 @@ EVENT gives the mouse position."
(defvar ivy-occur-timer nil)
(defun ivy--occur-press-update-window ()
- (cl-case (ivy-state-caller ivy-occur-last)
- ((swiper swiper-isearch counsel-git-grep counsel-grep counsel-ag
counsel-rg)
+ (cond
+ ((memq (ivy-state-caller ivy-occur-last)
+ (append '(swiper swiper-isearch) ivy-highlight-grep-commands))
(let ((window (ivy-state-window ivy-occur-last))
(buffer (ivy-state-buffer ivy-occur-last)))
(when (buffer-live-p buffer)
@@ -4893,7 +4894,8 @@ EVENT gives the mouse position."
(with-selected-window window
(switch-to-buffer buffer)))))))
- ((counsel-describe-function counsel-describe-variable)
+ ((memq (ivy-state-caller ivy-occur-last)
+ '(counsel-describe-function counsel-describe-variable))
(setf (ivy-state-window ivy-occur-last)
(selected-window))
(selected-window))))
- [elpa] master 1d8803e 181/184: Ensure that ripgrep on windows uses '/' as the path-separator, (continued)
- [elpa] master 1d8803e 181/184: Ensure that ripgrep on windows uses '/' as the path-separator, Oleh Krehel, 2019/10/16
- [elpa] master 7854d03 129/184: counsel.el (counsel-google): Add, Oleh Krehel, 2019/10/16
- [elpa] master cd634c6 183/184: doc/Changelog.org: Release 0.13.0, Oleh Krehel, 2019/10/16
- [elpa] master 0dfd70d 135/184: counsel.el (counsel-google-function): Require json, Oleh Krehel, 2019/10/16
- [elpa] master eed1f06 138/184: counsel.el (counsel--py-action): Don't auto-insert parens, Oleh Krehel, 2019/10/16
- [elpa] master 52295c4 137/184: swiper.el (swiper-isearch): Fix searching for "$^", Oleh Krehel, 2019/10/16
- [elpa] master 80c2669 142/184: ivy.el (ivy--alist-set): Work-around emacs-24.3 not having alist-get, Oleh Krehel, 2019/10/16
- [elpa] master 8b07572 149/184: ivy.el (ivy-configure): Add :display-transformer-fn, Oleh Krehel, 2019/10/16
- [elpa] master 9da8003 158/184: counsel.el (counsel-M-x): Don't sort by default, Oleh Krehel, 2019/10/16
- [elpa] master 8f08f38 155/184: counsel.el (counsel--grep-last-pos): Refactor from counsel-grep-last-line, Oleh Krehel, 2019/10/16
- [elpa] master 6b40d40 156/184: ivy.el (ivy--occur-press-update-window): Re-use ivy-highlight-grep-commands,
Oleh Krehel <=
- [elpa] master 2ed4416 165/184: ivy.el (ivy-configure): Add :exit-codes, Oleh Krehel, 2019/10/16
- [elpa] master 2ce5450 177/184: counsel.el (counsel-find-file): Bind "M-o R" to find-file-read-only, Oleh Krehel, 2019/10/16
- [elpa] master c82b852 174/184: ivy.el (ivy-occur-revert-buffer): Simplify, Oleh Krehel, 2019/10/16
- [elpa] master 8bc23e6 104/184: counsel.el (counsel-compile): delete duplicates, Oleh Krehel, 2019/10/16
- [elpa] master 966525c 118/184: counsel.el (counsel-cd): Fix for counsel-ag, Oleh Krehel, 2019/10/16
- [elpa] master f628569 127/184: Make ivy--magic-file-slash less aggressive, Oleh Krehel, 2019/10/16
- [elpa] master efdee7a 172/184: swiper.el (swiper--occur-insert-lines): Extract, Oleh Krehel, 2019/10/16