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

How to do case insensitive search? #5

Open
idelice opened this issue Sep 12, 2023 · 1 comment
Open

How to do case insensitive search? #5

idelice opened this issue Sep 12, 2023 · 1 comment

Comments

@idelice
Copy link

idelice commented Sep 12, 2023

As the title says, I want search by ignoring the case.

How do I do that?

@kajirikajiri
Copy link

Sorry if I'm wrong. Perhaps we could do it this way.

{
    config = function()
        local telescope_ag = require("telescope-ag")
        telescope_ag.setup({
            cmd = { "ag", "-s" }
        })
    end
}

Perhaps this is the usage of the grep command with the -rg option.

https://github.com/kelly-lin/telescope-ag/blob/main/README.md#custom

{
   config = function()
       local telescope_ag = require("telescope-ag")
       telescope_ag.setup({
           cmd = { "grep", "-rn" }
       })
   end
}

Perhaps the case sensitive for ag would be -s.

https://stackoverflow.com/questions/59725065/how-to-search-with-case-sensitive-with-ag-in-mac

ag -s pattern

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

2 participants