microsoft / vscode-hexeditor

VS Code Hex Editor
https://marketplace.visualstudio.com/items?itemName=ms-vscode.hexeditor
MIT License
523 stars 84 forks source link

Show the address/offset of the currently-selected byte in the "Data Inspector" pane, so that it can be copied #518

Open DeflateAwning opened 4 months ago

DeflateAwning commented 4 months ago

Related to #517.

I see that the offset of the currently-selected byte is shown in the status bar. However, it cannot be selected/copied from there, and it is very easily missed (have used the Hex Editor for >10h, and never noticed it).

I propose that the address be shown in the Data Inspector pane so that it can be selected and copied.

connor4312 commented 4 months ago

A click action to open "jump to" with the current byte prefilled would make sense (which would then allow copying)

I have a very strong preference towards keeping that location, however, since it's the same place that the line/column is shown when editing in ordinary text editors.

DeflateAwning commented 4 months ago

That could work.

Is there a reason we couldn't display that piece of info in both locations (status bar, and in the Data Inspector)?

hancerli commented 3 months ago

Related to #517.

I see that the offset of the currently-selected byte is shown in the status bar. However, it cannot be selected/copied from there, and it is very easily missed (have used the Hex Editor for >10h, and never noticed it).

I propose that the address be shown in the Data Inspector pane so that it can be selected and copied.

I didn't even noticed that address is revealed in the bottom because my window size was too small, and the bottom bar was too crowded.

I'd also prefer having it on the inspector panel instead.