Skip to content

Commit

Permalink
Add `--heading' option force to make group matches work always to sup…
Browse files Browse the repository at this point in the history
…port Windows.
  • Loading branch information
manateelazycat committed Sep 22, 2018
1 parent 02adcb0 commit cd1ed39
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions color-rg.el
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
;; Maintainer: Andy Stewart <lazycat.manatee@gmail.com>
;; Copyright (C) 2018, Andy Stewart, all rights reserved.
;; Created: 2018-08-26 14:22:12
;; Version: 2.2
;; Last-Updated: 2018-09-22 16:20:10
;; Version: 2.3
;; Last-Updated: 2018-09-23 07:09:17
;; By: Andy Stewart
;; URL: http://www.emacswiki.org/emacs/download/color-rg.el
;; Keywords:
Expand Down Expand Up @@ -68,6 +68,9 @@

;;; Change log:
;;
;; 2018/09/23
;; * Add `--heading' option force to make group matches work always to support Windows.
;;
;; 2018/09/22
;; * Add `color-rg-unfilter'
;;
Expand Down Expand Up @@ -461,6 +464,14 @@ CASE-SENSITIVE determinies if search is case-sensitive."

(list "--column --color=always")

;; NOTE:
;;
;; ripgrep is default use heading option (group matches by each file) in all OS's terminal.
;; But not greoup matches on Windows/Emacs.
;; So we add this option force to make group matches work always.
;;
(list "--heading")

(when no-ignore
(list "--no-ignore"))

Expand Down

0 comments on commit cd1ed39

Please sign in to comment.