[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master b5e869e 026/184: swiper.el (swiper--occur-cands): Fix wgre
From: |
Oleh Krehel |
Subject: |
[elpa] master b5e869e 026/184: swiper.el (swiper--occur-cands): Fix wgrep |
Date: |
Wed, 16 Oct 2019 13:14:42 -0400 (EDT) |
branch: master
commit b5e869ee605fd60ac0852933665023189d22c82c
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
swiper.el (swiper--occur-cands): Fix wgrep
Didn't work before because every line had one extra space.
Fixes #2156
---
swiper.el | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/swiper.el b/swiper.el
index 96a36b5..ff1e88c 100644
--- a/swiper.el
+++ b/swiper.el
@@ -604,14 +604,16 @@ such as `scroll-conservatively' are set to a high value.")
(if (eq (ivy-state-caller ivy-last) 'swiper-isearch)
(swiper--isearch-occur-cands cands)
(mapcar (lambda (s)
- (cons
- (get-text-property 0 'swiper-line-number s)
- s))
+ (let ((n (get-text-property 0 'swiper-line-number
s)))
+ (setq s (substring s 1))
+ (add-text-properties 0 1 (list 'swiper-line-number
n) s)
+ (cons n s)))
cands)))
(offset (+ (length fname) 2)))
(mapcar (lambda (x)
(let ((nn (number-to-string
(+ (car x) line-delta))))
+ (remove-text-properties 0 1 '(display) (cdr x))
(put-text-property 0 (length nn) 'face
'ivy-grep-line-number nn)
(put-text-property 0 1 'offset (+ offset (length nn))
fname)
(format "%s:%s:%s" fname nn (cdr x))))
- [elpa] master 4cddec4 102/184: Respect counsel-describe-function-function from counsel-M-x, (continued)
- [elpa] master 4cddec4 102/184: Respect counsel-describe-function-function from counsel-M-x, Oleh Krehel, 2019/10/16
- [elpa] master 42fedf5 116/184: counsel.el (counsel-file-stale-p): Extract, Oleh Krehel, 2019/10/16
- [elpa] master 0895c1a 113/184: Add key binding to allow switching directory in counsel-git-grep, Oleh Krehel, 2019/10/16
- [elpa] master d27eb38 119/184: counsel.el (counsel-git-grep): Change args order so counsel-cd works, Oleh Krehel, 2019/10/16
- [elpa] master 582c9d4 014/184: swiper.el (swiper--candidates): Don't store line number as a string, Oleh Krehel, 2019/10/16
- [elpa] master 4a44c9e 018/184: counsel.el (counsel--async-last-error-string): Add for ease of debugging, Oleh Krehel, 2019/10/16
- [elpa] master 5e79f16 020/184: ivy.el (ivy--input): Fix point moving in TRAMP sessions, Oleh Krehel, 2019/10/16
- [elpa] master f30c6e1 022/184: swiper.el: Fix overlay faces using regex-ignore-order, Oleh Krehel, 2019/10/16
- [elpa] master 9c4cdb7 025/184: swiper.el (swiper-isearch-action): Fix for ivy-occur, Oleh Krehel, 2019/10/16
- [elpa] master ed1ba4e 028/184: Makefile (deps): Add target, Oleh Krehel, 2019/10/16
- [elpa] master b5e869e 026/184: swiper.el (swiper--occur-cands): Fix wgrep,
Oleh Krehel <=
- [elpa] master 6928beb 031/184: ivy-test.el (ivy-read-file-name-in-buffer-visiting-file): Passes, Oleh Krehel, 2019/10/16
- [elpa] master 35415e3 027/184: ivy-test.el (ivy-swiper-wgrep): Add test, Oleh Krehel, 2019/10/16
- [elpa] master fb78c3f 045/184: swiper.el: Run ispell-comments-and-strings, Oleh Krehel, 2019/10/16
- [elpa] master ae3576a 037/184: swiper.el (swiper-isearch): Fix scroll on RET, Oleh Krehel, 2019/10/16
- [elpa] master c4e0b0b 032/184: ivy-test.el (ivy-read-file-name-make-directory): Add, Oleh Krehel, 2019/10/16
- [elpa] master fdd2178 042/184: ivy.el (ivy--magic-tilde-directory): Use "~~" to move to local home, Oleh Krehel, 2019/10/16
- [elpa] master a9196a2 035/184: counsel.el (counsel-file-jump-args): Is now a list, Oleh Krehel, 2019/10/16
- [elpa] master e58231e 033/184: ivy.el (ivy-immediate-done): Fix for when "C-j" changed cwd, Oleh Krehel, 2019/10/16
- [elpa] master 0132ced 044/184: counsel.el: Run ispell-comments-and-strings, Oleh Krehel, 2019/10/16
- [elpa] master c4842ec 043/184: Fix typo: 'beggining', Oleh Krehel, 2019/10/16