Skip to content

telescope ripgrep not finding empty text files #7

Description

@mrdandelion6

fix Telescope bug with ripgrep not finding empty textfiles. currently we are using ripgrep to ignore binaries:

if vim.fn.executable 'rg' == 1 then
        opts.find_command = {
          'rg',
          '-l',
          '.*',
          '--follow',
          '--hidden',
          '--no-ignore-vcs',
          '--glob',
          '!.git',
          '--glob',
          '!lib',
          '--glob',
          '!node_modules',
          '--glob',
          '!target',
          '--glob',
          '!dist',
          '--glob',
          '!build',
        }

but it ends up ignoring text files that contains no data.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingplugins

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions