parent
db5910da3c
commit
052cee93db
1 changed files with 2 additions and 2 deletions
|
@ -141,7 +141,7 @@ counsel-rg)."
|
|||
(setq extra-ag-args ""))
|
||||
(if (< (length string) 1) ;; #1
|
||||
(counsel-more-chars 1)
|
||||
(let ((default-directory counsel--git-dir)
|
||||
(let ((default-directory (ivy-state-directory ivy-last))
|
||||
(regex (counsel-unquote-regex-parens
|
||||
(setq ivy--old-re
|
||||
(ivy--regex string)))))
|
||||
|
@ -200,7 +200,7 @@ counsel-rg)."
|
|||
(with-ivy-window
|
||||
(let ((file-name (match-string-no-properties 1 x))
|
||||
(line-number (match-string-no-properties 2 x)))
|
||||
(find-file-other-window (expand-file-name file-name counsel--git-dir))
|
||||
(find-file-other-window (expand-file-name file-name (ivy-state-directory ivy-last)))
|
||||
(goto-char (point-min))
|
||||
(forward-line (1- (string-to-number line-number)))
|
||||
(re-search-forward (ivy--regex ivy-text t) (line-end-position) t)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue