mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-29 00:10:02 -05:00
### Problem description As suggested in #1904, ImHex could benefit from having the capability of pasting text directly into the editor. This also complements the "Copy as... ASCII string" capability already implemented in the software. ### Implementation description A new shortcut called `Paste all as string` (to resemble the naming of the `ASCII string` copy option) now allows to paste plaintext directly. This shortcut is mapped to the `CTRL + ALT + SHIFT + V` keybind. Internally, a new flag called `asPlainText` has been added to the `pasteBytes` function, to minimise code changes and streamline code readability. The buffer is a simple type cast of the clipboard, without any modification applied, which is then handed to the provider's `write` function. ### Screenshots The new shortcut is visible in the menu, just below the other paste options:  --------- Signed-off-by: BioTheWolff <47079795+BioTheWolff@users.noreply.github.com>