-
-
Notifications
You must be signed in to change notification settings - Fork 855
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
git_files with fallback to find_files when not in git repo picker #1338
Comments
Basically, what https://github.com/nvim-telescope/telescope.nvim/wiki/Configuration-Recipes#falling-back-to-find_files-if-git_files-cant-find-a-git-directory does in a single picker :) |
I don't see what a dedicated picker would over the recipe apart from technical debt. Maybe telescope build in a fallback option into What would a dedicated picker really offer here? |
Hi, honestly, the reason is just ease-of-use. When I opened the issue, I didn't know about the recipe and Googling didn't show anything either. Only later while looking at what else can telescope do I found the recipe accidentally... |
I agree that customization is something we should further try to improve. However, I'd close this for the time being for tidyness as You'd be welcome to make a PR to include this in telescope.nvim/lua/telescope/builtin/git.lua Lines 16 to 43 in b5c63c6
Then we can revisit as to whether to include such a fallback. I'd be OK with as I guess it wouldn't increase the maintenance burden. |
Is your feature request related to a problem? Please describe.
Hi, I would like to use git_files for most of my work. However, I am not always running vim inside a git repo
Describe the solution you'd like
I'd like to see a picker that behaves like
git_files
when I'm inside a git repo and likefind_files
otherwiseThe text was updated successfully, but these errors were encountered: