Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get rg to ignore case #115

Closed
ghost opened this issue Feb 8, 2021 · 3 comments
Closed

Cannot get rg to ignore case #115

ghost opened this issue Feb 8, 2021 · 3 comments

Comments

@ghost
Copy link

ghost commented Feb 8, 2021

I have set rg to ignore case and yet every search begins with case sensitive search enabled. Here is my configuration:

(use-package rg
  :config
  (require 'rg-isearch)
  (setq rg-group-result t) ;;Group matches together that are in the same file
  (setq rg-hide-command t)
  (setq rg-show-columns nil) ;; don't show columns
  (setq rg-show-header t)
  (setq rg-custom-type-aliases nil)
  (setq rg-default-alias-fallback "org")
  (setq rg-ignore-case 'force)
  (define-key isearch-mode-map "\M-sr" 'rg-isearch-menu)

  (rg-define-search prot/rg-vc-or-dir
    "RipGrep in project root or present directory."
    :query ask
    :format regexp
    :files "everything"
    :dir (or (vc-root-dir)              ; search root project dir
             default-directory)         ; or from the current dir
    :confirm prefix
    :flags ("--hidden -g !.git"))

  :bind (("C-n" . next-line)
         ("C-p" . previous-line)
         ("M-n" . rg-next-file)
	 ("<f10>" . rg)
         ("M-p" . rg-prev-file)))

I am running Emacs 28 on Linux Mint

@dajva
Copy link
Owner

dajva commented Feb 9, 2021

There is a bug here in the state of the result buffer I think. My testing shows that the flag is applied correctly for the search but it's not propagated correctly to the result buffer and the header indication is wrong. I'll try to fix this soon.
Thanks for the report.

@dajva
Copy link
Owner

dajva commented Feb 10, 2021

Should work on master now.

@dajva dajva closed this as completed Feb 10, 2021
@ghost
Copy link
Author

ghost commented Feb 10, 2021

I have download the update and it has fixed the problem. Many thanks. Love the package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant