-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pasting from clipboard on a new and empty session crashes. (+ smart paste?) #42
Comments
Thank you for the report. I'll try to think about how to best support pasting data into an empty document, and support multiple formats to parse binary data from text. |
Since Hexerator mainly deals with binary files, for which fixed length can be important, I don't want to silently expand the size of the binary file if the paste exceeds it. However trying to implement this, I ran into some architectural problems with the UI of hexerator. I'll have to think about how to solve those problems before I can implement this in a satisfactory manner. Sorry in advance for the wait. |
Sounds nice, I think of this as being a setting (lets call it "do not exceed original size when pasting data" for example) that defaults to true.
Absolutely no problem, thanks for considering it and sorry that I'm not able to help (skill issue). |
Heyo, any updates? |
Sorry, I've been not in the mood to do programming in the past few weeks. |
No problem, it's understandable, take your time! |
Regarding the crash:
Let's say that I have this in my clipboard (as a string):
20 00 62 75 69 6C
, I open Hexerator (a new session) and i go Edit > Paste at cursor > Hex text from clipboard then boom, panic:As I often inspect hex from my clipboard (as I get it as output from my program) I would like to be able to directly paste it on a new session to inspect it.
Regarding 'smart paste':
Doing
println!("{:02X?}", data);
(where data is anVec<u8>
for example, it outputs in the console this string:[20, 00, 62, 75, 69, 6C]
, and I want to copy and paste it in the program (let's say without the ending square brackets (so my clipboard now is20, 00, 62, 75, 69, 6C
), i get this error:... which is understandable as the string contains commas, but annoying as I have to get rid of all my commas to paste it in. Which is also a bit annoying as I apparently can't just
CTRL + V
to paste it.The text was updated successfully, but these errors were encountered: