-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
featureNew feature or requestNew feature or requestunder considerationThis is still under consideration or discussionThis is still under consideration or discussion
Milestone
Description
Quite often I find myself reading a binary file into vim, editing it through xxd
and trying to return that new hex text file back to binary. When I append into the middle of some data, it often breaks the counting, which breaks xxd. e.g.
starting with
00000000: 5468 6973 2069 7320 6120 6269 6e61 7279 This is a binary
00000010: 2066 696c 6520 7768 6572 6520 2d3e 3c2d file where -><-
00000020: 2073 686f 756c 6420 636f 6e74 6169 6e20 should contain
00000030: 7468 6520 776f 7264 2068 6576 6920 0a the word hevi .
editing to
00000000: 5468 6973 2069 7320 6120 6269 6e61 7279 This is a binary
00000010: 2066 696c 6520 7768 6572 6520 2d3e 68 6576 69 3c2d file where -><-
00000020: 2073 686f 756c 6420 636f 6e74 6169 6e20 should contain
00000030: 7468 6520 776f 7264 2068 6576 6920 0a the word hevi .
causes xdd to error instead of parsing the hex. I'd like to have a flag that would allow hevi to parse it, and generate the binary.
Bonus points if it could detect mistakes and output the formatting back to vim with the error inline where detected. Or it could return an error, and the result suggestion and require the user to approve/fix it.
Metadata
Metadata
Assignees
Labels
featureNew feature or requestNew feature or requestunder considerationThis is still under consideration or discussionThis is still under consideration or discussion