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

fix: git status quotes path with spaces #3292

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

Conversation

Lattay
Copy link

@Lattay Lattay commented Sep 12, 2024

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:

  • My code follows the style guidelines of this project (stylua)
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (lua annotations)

@jamestrew
Copy link
Contributor

I think ideally we eliminate the special formatting --porcelain adds.
Something like this should work #3301

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.

builtin.git_status doesn't handle quoted file names
2 participants