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

add a --no-fixed-strings flag #964

Closed
jsatk opened this issue Jun 25, 2018 · 3 comments
Closed

add a --no-fixed-strings flag #964

jsatk opened this issue Jun 25, 2018 · 3 comments
Labels
enhancement An enhancement to the functionality of the software.

Comments

@jsatk
Copy link

jsatk commented Jun 25, 2018

What version of ripgrep are you using?

ripgrep 0.8.1
-SIMD -AVX

How did you install ripgrep?

Homebrew

What operating system are you using ripgrep on?

macOS 10.13.5

Describe your question, feature request, or bug.

I rarely ever search using regular expressions. Normally I'm wanting to find some usage of a function or string. I was hoping there was a way to set rg --fixed-strings as the default behavior. Perhaps with a .rgrc or an environment variable?

Here's what I had in mind.

$ cat ~/.rgrc 
{
  "defaultSearchBehavior": "fixed-strings"
}
$ rg ".i8n(" # Would not explode
@okdana
Copy link
Contributor

okdana commented Jun 25, 2018

https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md#configuration-file

ETA: Might be useful to have a --no-fixed-strings or whatever so that people who put -F in their defaults can negate it tho

@BurntSushi BurntSushi added the enhancement An enhancement to the functionality of the software. label Jun 25, 2018
@BurntSushi
Copy link
Owner

@okdana I agree that a --no-fixed-strings flag would be useful.

@BurntSushi BurntSushi changed the title Is there a way to make --fixed-strings the default? add a --no-fixed-strings flag Jun 25, 2018
okdana added a commit to okdana/ripgrep that referenced this issue Jun 25, 2018
BurntSushi pushed a commit that referenced this issue Jun 25, 2018
@jsatk
Copy link
Author

jsatk commented Jun 25, 2018

Oops! I dug around and didn't see this info. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement to the functionality of the software.
Projects
None yet
Development

No branches or pull requests

3 participants