gornostal / Modific

Highlight lines changed since the last commit (supports Git, SVN, Bazaar, Mercurial and TFS) / ST2(3) plugin
614 stars 44 forks source link

Remove double quotes from status command output #109

Closed markusgritsch closed 4 years ago

markusgritsch commented 5 years ago

For some reason git status --porcelain adds double quotes to certain file names like this:

$ git status --porcelain M Core/Src/config.h M Core/Src/control.c M Core/Src/sixaxis.c M "MDK-ARM/STM32F411 NOXE.uvoptx" M "MDK-ARM/STM32F411 NOXE.uvprojx" ?? MDK-ARM/New Text Document.uvoptx

I'm not sure what's the criteria, because they are not added for example to New Text Document.uvoptx. Maybe because it's not modified but untracked.

However, the files from the list with the double quotes cannot be opened from the quick panel.

The proposed file change removes all double quotes from the output, and fixes the issue.

gornostal commented 4 years ago

Thanks for the PR :+1: