Skip to content

Commit

Permalink
Use smart case (-S) for ag-dired and friends
Browse files Browse the repository at this point in the history
This will be consistent with how the regular text ag search works.

(I've had this in my personal fork for years and never figured it wasn't pushed upstream until I moved to this new computer 😊)
  • Loading branch information
Fuco1 committed Jul 12, 2017
1 parent 2718190 commit 37d4e74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ag.el
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ See also `find-dired'."
(buffer-name (if ag-reuse-buffers
"*ag dired*"
(format "*ag dired pattern:%s dir:%s*" regexp dir)))
(cmd (concat ag-executable " --nocolor -g '" regexp "' "
(cmd (concat ag-executable " --nocolor -S -g '" regexp "' "
(shell-quote-argument dir)
" | grep -v '^$' | sed s/\\'/\\\\\\\\\\'/ | xargs -I '{}' "
insert-directory-program " "
Expand Down

0 comments on commit 37d4e74

Please sign in to comment.