[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 501ac71 151/184: ivy.el (ivy-occur-revert-buffer): Re-use
From: |
Oleh Krehel |
Subject: |
[elpa] master 501ac71 151/184: ivy.el (ivy-occur-revert-buffer): Re-use ivy-highlight-grep-commands |
Date: |
Wed, 16 Oct 2019 13:15:12 -0400 (EDT) |
branch: master
commit 501ac712dfda5af28e717f0c0b873db025d80385
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
ivy.el (ivy-occur-revert-buffer): Re-use ivy-highlight-grep-commands
---
counsel.el | 3 ++-
ivy.el | 4 ++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/counsel.el b/counsel.el
index 7b6aaac..39385f0 100644
--- a/counsel.el
+++ b/counsel.el
@@ -3109,7 +3109,8 @@ When non-nil, INITIAL-INPUT is the initial search
pattern."
:unwind-fn #'counsel--grep-unwind
:index-fn #'ivy-recompute-index-swiper-async
:occur #'counsel-grep-occur
- :more-chars 2)
+ :more-chars 2
+ :grep-p t)
;;;###autoload
(defun counsel-grep-backward (&optional initial-input)
diff --git a/ivy.el b/ivy.el
index 8ff3464..21dcf3b 100644
--- a/ivy.el
+++ b/ivy.el
@@ -3855,7 +3855,7 @@ Note: The usual last two arguments are flipped for
convenience.")
(str (if (eq ivy-display-style 'fancy)
(if (memq (ivy-state-caller ivy-last)
ivy-highlight-grep-commands)
- (let* ((start (if (string-match "\\`[^:]+:[^:]+:" str)
+ (let* ((start (if (string-match
"\\`[^:]+:\\(?:[^:]+:\\)?" str)
(match-end 0) 0))
(file (substring str 0 start))
(match (substring str start)))
@@ -4827,7 +4827,7 @@ updated original buffer."
(erase-buffer)
(funcall (plist-get ivy--occurs-list caller) t)
(ivy-occur-grep-mode))))
- ((memq caller '(counsel-git-grep counsel-grep counsel-ag counsel-rg))
+ ((memq caller ivy-highlight-grep-commands)
(let ((inhibit-read-only t)
(line (line-number-at-pos)))
(erase-buffer)
- [elpa] master 892e44a 079/184: doc: Add full text of licences, (continued)
- [elpa] master 892e44a 079/184: doc: Add full text of licences, Oleh Krehel, 2019/10/16
- [elpa] master 4645e89 121/184: swiper.el (swiper-action-copy): Add and bind to "M-o w", Oleh Krehel, 2019/10/16
- [elpa] master 77997ea 120/184: counsel.el (counsel-M-x-transformer): Handle read-only strings, Oleh Krehel, 2019/10/16
- [elpa] master 1984068 122/184: doc/ivy.org: Update GFDL license to no Invariant Sections, Oleh Krehel, 2019/10/16
- [elpa] master 881cbc5 130/184: counsel.el (counsel-google-function): Use request in async mode, Oleh Krehel, 2019/10/16
- [elpa] master b39f383 125/184: counsel.el (counsel-git-grep-occur): Re-use counsel-grep-like-occur, Oleh Krehel, 2019/10/16
- [elpa] master c9f1889 136/184: swiper.el (swiper--query-replace-setup): Fix "^$" issue, Oleh Krehel, 2019/10/16
- [elpa] master b9bb7c6 140/184: ivy.el (ivy-configure): New function to configure many things at once, Oleh Krehel, 2019/10/16
- [elpa] master e3dabec 143/184: counsel.el: Use ivy-configure :unwind-fn, Oleh Krehel, 2019/10/16
- [elpa] master f16ac0e 148/184: ivy.el (ivy--format): Set case-fold-search, Oleh Krehel, 2019/10/16
- [elpa] master 501ac71 151/184: ivy.el (ivy-occur-revert-buffer): Re-use ivy-highlight-grep-commands,
Oleh Krehel <=
- [elpa] master 6b0c41b 167/184: ivy.el (ivy-sort-file-function-using-ido): Make obsolete, Oleh Krehel, 2019/10/16
- [elpa] master 22cc602 160/184: counsel.el (counsel-find-symbol): Should not show up in counsel-M-x, Oleh Krehel, 2019/10/16
- [elpa] master b85f857 166/184: .github/FUNDING.yml: Add github, Oleh Krehel, 2019/10/16
- [elpa] master 722250c 162/184: counsel.el (counsel-imenu-action): Handle nil case, Oleh Krehel, 2019/10/16
- [elpa] master 9970ae6 180/184: counsel.el (counsel-read-directory-name): Add, Oleh Krehel, 2019/10/16
- [elpa] master 7054901 176/184: ivy.el (ivy-occur-revert-buffer): Make more generic, Oleh Krehel, 2019/10/16
- [elpa] master fcef913 023/184: swiper-isearch: Fix regexes in "ignore-order" case, Oleh Krehel, 2019/10/16
- [elpa] master 0b85d9d 030/184: counsel.el (counsel-at-git-issue-p): Add vc-git-log-view-mode, Oleh Krehel, 2019/10/16
- [elpa] master 2db2c51 050/184: counsel.el (counsel-find-file-mkdir-action): make parents too, Oleh Krehel, 2019/10/16
- [elpa] master f90bc8c 164/184: ivy.el (ivy-configure): Add :height, Oleh Krehel, 2019/10/16