close
Skip to content

Feature Request: insert byte(s) #5699

@jtmoon79

Description

@jtmoon79

Sometimes I want to intentionally create a file with invalid UTF8 bytes.
It would be handy to have a little tool that allows me to insert raw bytes into the document.

  1. Imagine a new entry at Menu path Edit -> Insert -> Bytes
  2. Click Bytes
  3. A small dialog is opened over the document window.
    The dialog has
    • button Insert
    • button Close
    • a choice of LE (Little Endian) or BE (Big Endian)
    • a small text field with label Byte where I can enter a string like hexadecimal 0xAF or decimal 175.
      The text field should allow up to four bytes.
    • a small preview window of the byte rendered (shows for bytes that do not render), preview rendering for UTF8 UTF16 UTF32
      • if it's a valid UTF8 glyph then the name of the glyph
      • same for UTF16
      • same for UTF32
  4. I click Insert in the dialog.
    The byte is inserted at the document cursor and the cursor is advanced.
    The small dialog handles translating the string from either hexadecimal or decimal.
  5. I can continue to insert more bytes or click Close.

This would be very cool!

Currently, I have to use an entirely separate editor to accomplish this.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions