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

bug: The no_ignore key is not available for the find command in get_dirs. #11

Open
kaka-ruto opened this issue Apr 12, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@kaka-ruto
Copy link

What happened?

When I live grep or find files, I get the message The no_ignorekey is not available for thefindcommand inget_dirs.

Neovim Version

0.8.3

Telescope.nvim Version

0.1.1

Relevant log output

The `no_ignore` key is not available for the `find` command in `get_dirs`.

Additional notes

It still opens up the search window, after the message disappears

@kaka-ruto kaka-ruto added the bug Something isn't working label Apr 12, 2023
@rafalglowacz
Copy link

As a workaround, you can install fd. It has --no-ignore option so it won't cause this error. And it's known for good performance, so it's preferred anyway.

See here: https://github.com/sharkdp/fd#on-ubuntu
for installation instructions. For instance in Ubuntu it's sudo apt install fd-find

@rafalglowacz
Copy link

I've run into a limitation though. I have a repo with a large number of files and not all directories are displayed. I don't know what exactly is limiting me here, so for another workaround 😁 I've modified one of Telescope's recipes and I use the regular find_files Telescope picker and reveal the selected item in Neotree. So keep in mind that the code below assumes using Neotree:

      require('telescope').setup({
        pickers = {
          find_files = {
            mappings = {
              n = {
                ['cd'] = function(prompt_bufnr)
                  local actions = require('telescope.actions');
                  local state = require('telescope.actions.state');
                  local selection = state.get_selected_entry()
                  actions.close(prompt_bufnr);
                  vim.cmd('Neotree reveal_file=' .. selection.path)
                end
              }
            }
          }
        }
      })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants