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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

maorun
Copy link

@maorun maorun commented May 8, 2024

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,
    },
})

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.
@maorun
Copy link
Author

maorun commented May 8, 2024

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 ?

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

Successfully merging this pull request may close these issues.

None yet

1 participant