[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 3c904fa 192/348: counsel.el (counsel-git-grep-occur): Fix
From: |
Oleh Krehel |
Subject: |
[elpa] master 3c904fa 192/348: counsel.el (counsel-git-grep-occur): Fix "g" |
Date: |
Sat, 8 Apr 2017 11:03:53 -0400 (EDT) |
branch: master
commit 3c904fa01baa51c18084c71aa5c17fb880c3be9e
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
counsel.el (counsel-git-grep-occur): Fix "g"
Things go wrong when `ivy-text' is changed from the original value and
"g" is pressed. Extract `ivy-text' from the buffer name.
---
counsel.el | 3 +++
1 file changed, 3 insertions(+)
diff --git a/counsel.el b/counsel.el
index 85708da..e17abeb 100644
--- a/counsel.el
+++ b/counsel.el
@@ -1151,6 +1151,9 @@ When REVERT is non-nil, regenerate the current
*ivy-occur* buffer."
(unless (eq major-mode 'ivy-occur-grep-mode)
(ivy-occur-grep-mode)
(setq default-directory counsel--git-grep-dir))
+ (setq ivy-text
+ (and (string-match "\"\\(.*\\)\"" (buffer-name))
+ (match-string 1 (buffer-name))))
(let ((cands (split-string
(shell-command-to-string
(format counsel-git-grep-cmd
- [elpa] master 8983f9d 167/348: counsel.el (counsel-recentf): Turn on recentf, (continued)
- [elpa] master 8983f9d 167/348: counsel.el (counsel-recentf): Turn on recentf, Oleh Krehel, 2017/04/08
- [elpa] master 6961df6 166/348: doc/ivy.org: Replace swiper with counsel (MELPA), Oleh Krehel, 2017/04/08
- [elpa] master 3656dfe 171/348: ivy.el (ivy-exit-with-action): Remove with-ivy-window, Oleh Krehel, 2017/04/08
- [elpa] master 4c3ecb4 157/348: Restore window position after using swiper., Oleh Krehel, 2017/04/08
- [elpa] master 94f3368 160/348: Extract ivy--flx-propertize from ivy--flx-sort, Oleh Krehel, 2017/04/08
- [elpa] master 6b574e4 173/348: ivy.el (ivy-call): expand-file-name, Oleh Krehel, 2017/04/08
- [elpa] master 93f9321 174/348: ivy.el: Fix byte compiler warnings, Oleh Krehel, 2017/04/08
- [elpa] master 2a9c3f3 191/348: swiper.el (swiper-multi): Don't use virtual buffers, Oleh Krehel, 2017/04/08
- [elpa] master 3a7c8cd 189/348: counsel.el (counsel-recentf): add extra actions, Oleh Krehel, 2017/04/08
- [elpa] master 955585e 190/348: counsel.el (counsel-describe-face): Ensure :preselect string, Oleh Krehel, 2017/04/08
- [elpa] master 3c904fa 192/348: counsel.el (counsel-git-grep-occur): Fix "g",
Oleh Krehel <=
- [elpa] master 77ebfdb 196/348: Makefile: load ivy-overlay.el, Oleh Krehel, 2017/04/08
- [elpa] master f357cd2 198/348: ivy-overlay.el (ivy-overlay-cleanup): Restore cursor-type, Oleh Krehel, 2017/04/08
- [elpa] master f8d78eb 197/348: Add a fake cursor to inline completion display, Oleh Krehel, 2017/04/08
- [elpa] master 1bdc50b 200/348: ivy-overlay.el (ivy-overlay-cleanup): Don't trigger company, Oleh Krehel, 2017/04/08
- [elpa] master bfddbc2 199/348: ivy-overlay.el (ivy-display-function-overlay): Fix up, Oleh Krehel, 2017/04/08
- [elpa] master d1de20f 193/348: Display completion-at-point at point, Oleh Krehel, 2017/04/08
- [elpa] master 8109655 204/348: ivy-overlay.el (ivy-display-function-overlay): Fix with-ivy-window, Oleh Krehel, 2017/04/08
- [elpa] master 572c2aa 206/348: Enable read-only-mode for ivy-occur, Oleh Krehel, 2017/04/08
- [elpa] master 73d23d1 207/348: Correct a minor doc error: `info-describe-symbol' should be `info-lookup-symbol'., Oleh Krehel, 2017/04/08
- [elpa] master 378943c 212/348: ivy.el (ivy--minibuffer-setup): Fixup max-mini-window-height, Oleh Krehel, 2017/04/08