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

Support to_fuzzy_refine function #39

Closed
bangedorrunt opened this issue Nov 12, 2022 · 3 comments
Closed

Support to_fuzzy_refine function #39

bangedorrunt opened this issue Nov 12, 2022 · 3 comments

Comments

@bangedorrunt
Copy link

Hi,

Current built-in rg has to_fuzzy_refine which allow us to narrow down our search. It'd be great if we could use it for this extension.

Related: nvim-telescope/telescope.nvim#2034

@taybart
Copy link

taybart commented Dec 14, 2022

I tested this and it worked with the current version

@ilan-schemoul
Copy link
Contributor

Yeah it works in the setup of Telescope you can write

extensions = {
   live_grep_args = {
     auto_quoting = true, -- enable/disable auto-quoting
     mappings = { -- extend mappings
       i = {
         ["<C-space>"] = actions.to_fuzzy_refine,
         ["<C-k>"] = lga_actions.quote_prompt(),
         ["<C-i>"] = lga_actions.quote_prompt({ postfix = " --iglob " }),
       },
     },
   },
 },

It should be part of the read as C-space is already the default in Telescope live_grep

@weeman1337
Copy link
Collaborator

Support is given if you create a shortcut.

Closed by #80 , that documents it in the README

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

4 participants