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

Telescope live_grep with args #99

Closed
williamgoulois opened this issue Oct 31, 2022 · 5 comments
Closed

Telescope live_grep with args #99

williamgoulois opened this issue Oct 31, 2022 · 5 comments

Comments

@williamgoulois
Copy link

I need sometimes to search large codebases and lack the ability to filter by filetype and/or location, temporary search inside ignored files...

I found this plugin for Telescope (from the official Telescope org repo) that allows to pass args to rg finder
https://github.com/nvim-telescope/telescope-live-grep-args.nvim

For example inside telescope you could type :

'state' utils -trust

=> this searches the word state inside folder utils only in rust filetypes

Here is a ripgrep guide (for reference args possibilities)
https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md

In second time there is an interesting issue with POCs to be able to search word under cursor, or even search inside the focused directory in nvim-tree.
nvim-telescope/telescope-live-grep-args.nvim#14

Would you be interested in this plugin ?

@Uzaaft
Copy link
Contributor

Uzaaft commented Oct 31, 2022

There is already something like this in this config.
<Leader>+ss opens up live grep with can be used to search for words based upon file type

@abzcoding
Copy link
Owner

lvim.builtin.which_key.mappings["ss"] = {
"<cmd>lua require('telescope').extensions.live_grep_args.live_grep_args()<cr>",
"String",
}

@Uzaaft
Copy link
Contributor

Uzaaft commented Nov 1, 2022

Turns out that abzcoding uses that extension. 😂

@williamgoulois
Copy link
Author

Oh wow that was about to be expected ! I really have to look for all of the features packed in this config 😆
Thanks for this amazing config abz I use it every day since a whole year now 🚀

@abzcoding
Copy link
Owner

You're welcome mate <3

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

3 participants