[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master b154260 097/399: counsel.el (counsel-grep): Fix TRAMP prob
From: |
Oleh Krehel |
Subject: |
[elpa] master b154260 097/399: counsel.el (counsel-grep): Fix TRAMP problems |
Date: |
Sat, 20 Jul 2019 14:56:56 -0400 (EDT) |
branch: master
commit b154260a26d8927b1dc11d2753b6d1ac552d366a
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
counsel.el (counsel-grep): Fix TRAMP problems
Re #1978
---
counsel.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/counsel.el b/counsel.el
index 6605d90..bcf633c 100644
--- a/counsel.el
+++ b/counsel.el
@@ -2855,8 +2855,11 @@ When non-nil, INITIAL-INPUT is the initial search
pattern."
(setq counsel-grep-last-line nil)
(setq counsel-grep-command
(format counsel-grep-base-command
- "%s" (shell-quote-argument buffer-file-name)))
- (let ((init-point (point))
+ "%s" (shell-quote-argument
+ (file-name-nondirectory
+ buffer-file-name))))
+ (let ((default-directory (file-name-directory buffer-file-name))
+ (init-point (point))
res)
(unwind-protect
(setq res (ivy-read "grep: " 'counsel-grep-function
- [elpa] master a473519 086/399: Fix error in ivy-make-magic-action, (continued)
- [elpa] master a473519 086/399: Fix error in ivy-make-magic-action, Oleh Krehel, 2019/07/20
- [elpa] master 9ce9e4e 090/399: counsel.el (counsel-compile-phony-pattern): Fixup, Oleh Krehel, 2019/07/20
- [elpa] master 1046fc7 095/399: ivy.el (ivy-avy): Use non-obsolete avy-process, Oleh Krehel, 2019/07/20
- [elpa] master 27add46 092/399: Anchor pcre lookaround patterns to bol, Oleh Krehel, 2019/07/20
- [elpa] master 3e1e905 083/399: Fix virtual buffers in counsel-switch-buffer, Oleh Krehel, 2019/07/20
- [elpa] master cbdc9c9 078/399: counsel.el (counsel--compile-get-make-targets): Rename, Oleh Krehel, 2019/07/20
- [elpa] master e7146e5 089/399: counsel.el (counsel-git-grep-count-function): Fix, Oleh Krehel, 2019/07/20
- [elpa] master b180abf 087/399: counsel.el (counsel-compile): clean-up get-make-targets, Oleh Krehel, 2019/07/20
- [elpa] master 456e575 093/399: Don't bury killed buffers after counsel-switch-buffer, Oleh Krehel, 2019/07/20
- [elpa] master 1c84179 098/399: counsel.el (counsel-rg): Add an example to the doc, Oleh Krehel, 2019/07/20
- [elpa] master b154260 097/399: counsel.el (counsel-grep): Fix TRAMP problems,
Oleh Krehel <=
- [elpa] master adab07d 101/399: counsel.el: Simplify counsel-git-grep, Oleh Krehel, 2019/07/20
- [elpa] master 5b4dbbc 096/399: ivy.el: Silence byte-compiler, Oleh Krehel, 2019/07/20
- [elpa] master 3954bfe 081/399: counsel.el (counsel-compile): Don't modify compilation-start-hook permanently, Oleh Krehel, 2019/07/20
- [elpa] master d92d43a 085/399: counsel.el (counsel-compile-root-functions): Tidy, Oleh Krehel, 2019/07/20
- [elpa] master 2356a1d 091/399: ivy-test.el (counsel--grep-regex): Extend test, Oleh Krehel, 2019/07/20
- [elpa] master cdd7ada 094/399: counsel.el (counsel-url-expand): Avoid null error, Oleh Krehel, 2019/07/20
- [elpa] master 089107a 099/399: counsel.el (counsel-ag): Add a keyword argument caller, Oleh Krehel, 2019/07/20
- [elpa] master 776fbb7 103/399: Make ivy-switch-buffer-occur work with multi-pass regex builders, Oleh Krehel, 2019/07/20
- [elpa] master 8b4c939 100/399: counsel.el (counsel-cd): Add, Oleh Krehel, 2019/07/20
- [elpa] master 0c8cfe8 106/399: ivy-hydra.el (ivy-dispatching-done-idle): Add, Oleh Krehel, 2019/07/20