Skip to content

Commit

Permalink
Change: Call rg with directory and pipe connection type
Browse files Browse the repository at this point in the history
See <BurntSushi/ripgrep#951>.  Thanks to
@BurntSushi for his help.
  • Loading branch information
alphapapa committed Jun 17, 2018
1 parent 7548212 commit a2c1d9c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions magit-todos.el
Original file line number Diff line number Diff line change
Expand Up @@ -583,17 +583,15 @@ This is a copy of `async-start-process' that does not override
;; capture them and pass them in.
(let ((depth (number-to-string depth))
(timeout (number-to-string timeout))
(default-directory directory)
(process-connection-type 'pty))
(process-connection-type 'pipe))
(magit-todos--async-start-process "rg-scan-async" "nice"
(apply-partially #'magit-todos--rg-scan-async-callback magit-status-buffer)
"-n5"
;; FIXME: Restore use of timeout when async.el issue is
;; resolved. See
;; <https://github.com/jwiegley/emacs-async/issues/101>.
;; "timeout" timeout
"rg" "--column"
magit-todos-ag-search-regexp)))
"rg" "--column" magit-todos-ag-search-regexp directory)))

(defun magit-todos--rg-scan-async-callback (magit-status-buffer process)
"Callback for `magit-todos--rg-scan-async'."
Expand Down

0 comments on commit a2c1d9c

Please sign in to comment.