Skip to content

Find a good way to deal with binary files #32

@fwcd

Description

@fwcd

Currently, binary solutions aren't particularly readable:

image

I think there are some (non-mutually-exclusive) ways on how we could improve on this:

  • Detect if a file is binary. For my repo, I set the property "binary": true in the paths.json, but perhaps we could also apply heuristics, such as checking whether strange characters pop up during decoding.
  • Handle some common binary formats. For example, in the case above, the format is based on a binary plist, which we could e.g. convert to JSON and then present it. Then again, perhaps this is too niche to be useful and would impose too much complexity for an edge case?
  • Offer a download link for the binary file. This would probably be the most useful option if the user has the appropriate program installed on their device, but probably not very useful for browsing through.
  • Display the binary file in a hex editor-style. This might be fun, but probably doesn't add much value over the current ASCII view.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions