vim-plist icon indicating copy to clipboard operation
vim-plist copied to clipboard

File format is not preserved

Open hk0i opened this issue 5 years ago • 1 comments

Problem

Xcode likes to encode certain entities like " as " for example.

This and the original formatting of the file like the indentation, bracket and brace placement of json in my XML keys is not being preserved. So this results in me saving my change but having the entire file show as different in version control, rather than just one or two keys that I've changed.

This isn't a problem for solo development work, but when working on teams who will be using Xcode this could lead to potential merge conflicts and messy pull requests.

Expectation

Preserve original formatting as much as possible when saving, so that only my changes show in a git diff

hk0i avatar Apr 21 '20 21:04 hk0i

Sorry for the delay.

This might be a tough issue to tackle. The plugin itself is completely content-unaware and does not parse anything, all operations are delegated to plutil. It would probably require integration with PlistBuddy to preserve formatting. Nonetheless, it is an understandable request.

darfink avatar May 11 '20 17:05 darfink