nvim-telescope / telescope-file-browser.nvim

File Browser extension for telescope.nvim
MIT License
1.6k stars 89 forks source link

feat(file_browser): add support for custom parameters in fd search #388

Open maorun opened 2 months ago

maorun commented 2 months ago

Add support for custom parameters in fd search by allowing users to pass in a table of parameters to be included in the fd command. This change provides more flexibility for users who need to customize their search queries in the file browser.

use-case: e.g. max the results on an unlimited depth search:

require('telescope').extensions.file_browser.file_browser({
    path = '%:p:h',
    fd_params = {
        ['--max-results'] = 100,
    },
})
maorun commented 2 months ago

on second thought: my use-case is bad because the search happens before the grep by the picker. i want to limit the search-items while i grep.

should i close the pr ?