wfxr / forgit

:zzz: A utility tool powered by fzf for using git interactively.
MIT License
4.32k stars 136 forks source link

Fixed: Untracked files with spaces in the path do not show a preview with ga #271

Closed sandr01d closed 1 year ago

sandr01d commented 1 year ago

Check list

Description

Added escaped quotes around the file variable inside the preview string in _forgit_add() to prevent word splitting on files that have spaces in their file path. As a result such files do now generate a preview as expected.

Closes #263

Type of change

Test environment

cjappl commented 1 year ago

Hoo boy! Ugly but effective. Thumbs up from me. Will wait to see if @carlfriedrich has any thing, otherwise I'll merge it soon.