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

Option ignore_patterns is overwritten by telescope.defaults.file_ignore_patterns #108

Open
b0ae989c opened this issue Aug 5, 2023 · 2 comments

Comments

@b0ae989c
Copy link

b0ae989c commented Aug 5, 2023

I find that the option ignore_patterns is overwritten when the file_ignore_patterns option is set in Telescope defaults. Is this a bug or some expected behavior?

Here is my configuration. My expectation is that telescope.builtin.find_files ignores the test/ directory, and telescope.extensions.frecency.frecency does not ignore the test/ directory. But both pickers ignore the test/ directory with this configuration.

require('telescope').setup({
  defaults = {
    file_ignore_patterns = {
      '*.bak',
      '*.git',
      '*/test/*'.
    },
  },
  extensions = {
    frecency = {
      ignore_patterns = {},
    },
  },
})
@b0ae989c
Copy link
Author

b0ae989c commented Aug 5, 2023

If this is expected behavior, feel free to close.

@delphinus
Copy link
Member

I think this is a bug. It should consider both of them.

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