Permalink
Browse files

Add warning when reading binary property lists

As a more general fix it might be good if import commands can indicate that they do not provide a round-trip safe format, so TextMate can mark the buffer read-only or similar.
  • Loading branch information...
1 parent 8a2b90a commit b0e6b9fd7c8d304274c7ab1fd7f2f5a7c977b8fd @sorbits sorbits committed Jan 9, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 Commands/Import Binary Property List.tmCommand
@@ -6,6 +6,12 @@
<string>nop</string>
<key>command</key>
<string>#!/bin/bash
+echo '// !!! BINARY PROPERTY LIST WARNING !!!'
+echo '//'
+echo '// The pretty-printed property list below has been created'
+echo '// from a binary version on disk and should not be saved as'
+echo '// the ASCII format is a subset of the binary representation!'
+echo '//'
"${TM_BUNDLE_SUPPORT}/bin/pretty_plist"
</string>
<key>contentMatch</key>

0 comments on commit b0e6b9f

Please sign in to comment.