telescope.nvim
telescope.nvim copied to clipboard
fix: git status quotes path with spaces
Description
First try to match the path with quotes, then try without.
Fixes #3284
Type of change
Bug fix (non-breaking change which fixes an issue)
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list relevant details about your configuration
mkdir repro
cd repro
git init
echo "test file" > 'file with space.txt'
nvim -nu ~/minimal.lua
Then do :lua require("telescope.builtin").git_status(), type file and <CR>.
Configuration:
- Neovim version (nvim --version):
- Operating system and version: Arch
Checklist:
- [x] My code follows the style guidelines of this project (stylua)
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation (lua annotations)
I think ideally we eliminate the special formatting --porcelain adds.
Something like this should work https://github.com/nvim-telescope/telescope.nvim/pull/3301