facelessuser / hexviewer Goto Github PK
View Code? Open in Web Editor NEWHex viewer and editor for SublimeText
Home Page: https://facelessuser.github.io/HexViewer/
Hex viewer and editor for SublimeText
Home Page: https://facelessuser.github.io/HexViewer/
I don't see the ability to add bytes to a file. You can change them, but not add them.
Hello
When attempting to switch between a ascii file to a hex view, I get the following error message.
"HexViewer: Veiw does not exist on disk!"
http://s.chipkin.com/files/2014/sep/HexViewError.PNG
This is the first packages I have installed via "package control" https://sublime.wbond.net an it may have something to do with my inexperience with package control.
Using Sublime 3, build 3065
The inpector doesn't show up, either in the commante palette, and via the key binding. I'm using ST2 on Windows 8.1.
I don't know if it's related, but when I enable HexView, I get the following stack trace in the console:
Traceback (most recent call last):
File ".\sublime_plugin.py", line 195, in on_modified
File ".\sublime_plugin.py", line 154, in run_timed_function
File ".\sublime_plugin.py", line 194, in <lambda>
File ".\footnotes.py", line 74, in on_modified
File ".\footnotes.py", line 70, in update_footnote_data
IndexError: Index out of range
It would be convenient if when toggling hex view, the offset automatically jumps to the offset at which the cursor was in text view.
Hi, I'm on osx and sublime text 2 and I can't make the inspector showing on my screen. I removed all the other package and still didn't work.
I'd like to have the ability to choose the output-format in the Hex Inspector more fine grained.
Could you add preferences, so every single output's type can be changed?
I.e.: I'd like to see DWORDs as Hex, so I changed "inspector_integer_format": "%-12s: 0x%-22X"
- but now all integer values, from byte up to long long int are in the same hex-format. It should be possible to define a special output format for any of those values listed.
Sorry, I don't know how else to contact you so feel free to close this issue. I know the ST2 branch is not really officially supported, but is the Hex Inspector just not implemented in that version, or am I missing something? It doesn't appear in the command palette and the "inspector_auto_show" option seems to have no effect.
It would be great to have some basic maths/checksum operations which are used occasionally, like summed bytes, summed words, XOR'd bytes, etc.
EG:
summed bytes: add all bytes in the sequence with overflow.
XOR'd bytes: XOR all bytes in the sequence.
While Sublime keeps track of file changes in the background and automatically reloads them, HexViewer does not do so (I assume because the conversion process is rather heavy).
I suggest implementing a reload file command (that the user could map up to a hotkey if he wanted). Currently the best I can do is exit and re-enter HexViewer mode in Sublime, which forces the file to reload, but also loses my place in the file.
First of all, AWESOME job with this package!
Anyway, I do Commodore 64 6502 assembly programming. I create custom maps that might have a dimension of 20x12 bytes.
It's real convenient to be able to view a complete map in the editor and see the same dimension (20 bytes per line). But I can only do 16 or 24.
What I would love to be able to do is have a custom Set Bytes Per Line
for different file types.
Like if I could set *.map
files to use 20 bytes per line and *.chars
files to use 16 bytes per line, etc.
Thanks!
EDIT
I found that I can alter hex_viewer.py
and change
VALID_BYTES = [8, 10, 16, 20, 24, 32, 48, 64, 128, 256, 512]
to include any values I want to use. This will get me by for now. :-)
I can't seem to figure out the edit panel. I keep trying but it keeps saying unexpected number of bytes. Can we get more intuitive hex and string editing, like the default hex view?
Am using sublime text 3 in windows 10 and when I try to use the Export Bin command, its just creating another text file with same contents in it. And I can read it with regular notepad.
Is it possible to add a setting to directly edit (overwrite) the hex code and its ASCII text translation? Like with a normal text and you hit the "Insert"-key on your keyboard.
Also it would be nice to be able to use the build-in search&replace function for hex and ASCII.
And is it necessary to handle the files separately as .hex files? Couldn't the editing process be done in the file directly?
Sublime Text 3 build: 3083
Operating system: Mac OS 10.11.2
Errors in console: None
Detailed description of the problem: It would be awesome if hex viewer supported unicode text by showing the appropriate unicode characters on the right whenever Sublime Text shows the right thing. This would be a reasonably big UI change, since a character is more than one byte, but some very simple approaches might be good enough. For example, you could use the Unicode rules to look up the appropriate glyph and show it (if available) in the slot for the first byte, and then still fill in the remaining bytes with "." to keep exactly 24 glyphs per row.
Reproduction Steps:
First of all the plugin is really promising, I which I could use it too.
But most of the time I'm working with Intel Hex files and there is no compatibility yet.
Intel Hex is a very common hex format (http://en.wikipedia.org/wiki/Intel_HEX) allowing to specify the addresses of data (as opposed to plain binary).
Would it be possible to add support for this hex format?
The following example can be saved as a .hex.
I attached screenshot of the current rendering and the expected one (from another tool).
:0200000400CE2C
:100A000000000000000000000000000000000000E6
:100A100000000000000000000000000000000000D6
:100A200000000000000000000000000000000000C6
:100A300000000000000000000000000000000000B6
:100A400000000000000000000000000000000000A6
:100A50000000000000000000000000000000000096
:100A60000000000000000000000000000000000086
:10FFE0000000000000000000000000000000000011
:10FFF0000000000000000000000000000000000001
:0200000400CF2B
:1000000000000000000000000000000000000000F0
:1000100000000000000000000000000000000000E0
:1000200000000000000000000000000000000000D0
:00000001FF
Great tool! I did make a minor edit to add more digits to the double display under Hex Inspector (line 104 hex_inspector.py -14e change to -18.15e). I have files with time stamps in double seconds.
Thanks.
I browsed the package source, and discovered that it should actually be possible to enter strings in the hex edit panel, as long as they are prefixed by a "s:". This unfortunately doesn't work for some reason, there are no errors displayed and the file just stays unmodified after pressing enter.
I realize this is a config setting, so locally I do have this changed so I can get by this limit. But it made me wonder, instead of preventing the user from doing this, can you pop up a warning instead? This is a design decision you made, why not make things more flexible for the user? Thanks for at least making it a config option I can override in my user config.
Thanks for this great package.
I'd like to make just one suggestion:
to rename the command in Tools|Packages|HexViewer|Find by Address
into Go to offset
.
That's because this command is equivalent to "Go to a specific offset" - it's not performing a search.
HexViewer does not work for me at all in ST3. I use shift+super+P and select Toggle Hex View and nothing happens. I see no output in the console.
Hi,
Can I suggest adding installation instructions to the readme? And basic usage instructions? I tried extracting the release zip to the packages folder, but didn't see how to switch to hex mode.
Thanks.
When I try to use "Toggle Hex View", I get this error and HexViewer is unusable.
Mac OSX 10.11.3
ST3 build 3103
For some reason, I cannot export my hex files to binary. When I try to, it creates an empty file at the path specified, then throws this error:
"Failed to export to C:\path\to\file\test2.txt"
I am running Windows 8.1, using ST 3. My plugins include Emmet, Git, and ArduinoIDE, among others.
Hopefully this is just an error on my part, or maybe just due to plugin conflicts. Any help or insight into this would be appreciated.
Running Sublime Text 3 on Windows 10. Trying to use HexViewer after some time, getting an error message saying
HexViewer: View does not exist on disk!
Hi,
There are some missing comma in commit SHA: 42f24e7 , see my comments.
On Windows, ST2 refuse to start with this error. Not nice...
The toggle hex option seems to do nothing, and provides no output to the console. I've tried a total re-install of Sublime 3, and have only installed Package Manager(via their install command) and Hex Viewer(via package manager) trying to test this. The hash generation functions seem to work fine. I also rebooted Sublime after installing each one.
This is Sublime build 3059 64 bit on Win7 64 bit.
Here is the log from start up if it provides any insight:
reloading plugin HexViewer.hex_checksum
Hex Viewer: md2 hash is not available!
Hex Viewer: mdc2 hash is not available!
reloading plugin HexViewer.hex_common
reloading plugin HexViewer.hex_editor
reloading plugin HexViewer.hex_finder
reloading plugin HexViewer.hex_highlighter
reloading plugin HexViewer.hex_inspector
reloading plugin HexViewer.hex_viewer
reloading plugin HexViewer.hex_writer
reloading plugin HexViewer.sum_hashes
loaded 837 snippets
reloading plugin HexViewer.tiger
reloading plugin HexViewer.whirlpool
reloading plugin Package Control.Package Control
plugins loaded
Package Control: Skipping automatic upgrade, last run at 2014-05-27 17:53:04, next run at 2014-05-27 18:53:04 or after
Could you add a setting to display the Hex in uppercase: 0123456789ABCDEF
Hi!
I tried HexViewer on a 49mb file. It caused sublime text to allocate over 6 gb of ram and eventually completely crash the machine to the point where I had to pull the power cable.
This was on 64 bit windows 7 with 64 bit sublime text 2.
I am using Mac Sublime Text 2.0.1 Build 2217
The default font HexViewer starts with is a variable width font, and I would like fixed-width.
I set this in ~/Library/Application Support/Sublime Text 2/Packages/HexViewer/hex_viewer.sublime-settings:
"custom_font" : "Courier New",
"custom_font_size" : 12,
And the font did not change (restarted sublime, too)
Also, I set the default user setting font in sublime, which worked for Sublime, but not with HexViewer.
Scenario
Hex Viewer: Toggle Hex View
Expected result
Actual result
Does this work with sublime text 3? I'm trying to install it and I can't tell if I'm being stupid or it just isn't supported.
Can we change the 'Show Hex Inspector' to 'Toggle Hex Inspector' so that we can hide the Hex Inspector also.
Also we want this Hex Inspector to be shown only on that file which has the HexViewer Enabled. but it is getting shown on each and every other tab too..
I had some installation trouble, and I'm not sure if it's a bug. I hope this is the right place to post.
Symptom: Executing the command "Hex Viewer: Toggle Hex View" has no effect.
Sublime Text version/build: 2.0.2 build 2221
Operating system: Mac OS 10.11.2
Errors in console: None (No Console Output whatsoever)
Detailed description of the problem:
I installed hex viewer via Package Control. (I installed package control just before installing hex viewer. I got some errors when using the console, so I did it manually.) The console showed an issue with md2 hash, but this might be an unrelated problem. Full console output is below. After installing, use Cmd-Shift-P to bring up the command palette. The command "Hex Viewer: Toggle Hex View" is present, but executing it has no visible effect and produces no output to the console.
Here is the full console output after installing Hex Viewer via Package Control.
ignored packages updated to: [HexViewer, Vintage]
found 1 files for base name Default.sublime-theme
reloading /Users/noname/Library/Application Support/Sublime Text 2/Packages/User/Package Control.sublime-settings
reloading /Users/noname/Library/Application Support/Sublime Text 2/Packages/User/Preferences.sublime-settings
theme loaded
found 1 files for base name Default.sublime-theme
theme loaded
reloading /Users/noname/Library/Application Support/Sublime Text 2/Packages/User/Package Control.sublime-settings
ignored packages updated to: [Vintage]
found 1 files for base name Default.sublime-theme
reloading /Users/noname/Library/Application Support/Sublime Text 2/Packages/User/Package Control.sublime-settings
reloading /Users/noname/Library/Application Support/Sublime Text 2/Packages/User/Preferences.sublime-settings
theme loaded
found 1 files for base name Default.sublime-theme
Reloading plugin /Users/noname/Library/Application Support/Sublime Text 2/Packages/HexViewer/hex_checksum.py
Hex Viewer: md2 hash is not available!
Reloading plugin /Users/noname/Library/Application Support/Sublime Text 2/Packages/HexViewer/hex_common.py
Reloading plugin /Users/noname/Library/Application Support/Sublime Text 2/Packages/HexViewer/hex_editor.py
Reloading plugin /Users/noname/Library/Application Support/Sublime Text 2/Packages/HexViewer/hex_finder.py
Reloading plugin /Users/noname/Library/Application Support/Sublime Text 2/Packages/HexViewer/hex_highlighter.py
Reloading plugin /Users/noname/Library/Application Support/Sublime Text 2/Packages/HexViewer/hex_inspector.py
Reloading plugin /Users/noname/Library/Application Support/Sublime Text 2/Packages/HexViewer/hex_viewer.py
Reloading plugin /Users/noname/Library/Application Support/Sublime Text 2/Packages/HexViewer/hex_writer.py
Reloading plugin /Users/noname/Library/Application Support/Sublime Text 2/Packages/HexViewer/sum_hashes.py
Reloading plugin /Users/noname/Library/Application Support/Sublime Text 2/Packages/HexViewer/tiger.py
Reloading plugin /Users/noname/Library/Application Support/Sublime Text 2/Packages/HexViewer/whirlpool.py
found 5 files for base name Default.sublime-keymap
found 3 files for base name Main.sublime-menu
theme loaded
Generating syntax summary
reloading /Users/noname/Library/Application Support/Sublime Text 2/Packages/User/Preferences.sublime-settings
found 1 files for base name Default.sublime-theme
theme loaded
Currently there is no way to see an image in hexa decimal format. Could it be added ?
It would be nice to be able to check results while writing/reading metadata in an image for example.
Originally it was included by default in sublime, but now when opening an image, sublime shows a preview.
Note : if I change the file extension *.png to *.txt, I can use the package correctly.
How do I configure the font to be used under HexView? When I toggle to HexView, it seems to be using a different font and I could not change it with Font Chooser
Create a new release with recent fix.
Toggling a file when it is the only open causes all views to close.
As title.
I know the Hex Inspector can being Big/Little endian mode. It let user check value easily.
Sometime I need to check machine code( e.g. ARM processor). It's word/dword boundary placing machine code. If this plugin can switch byte order, it will quite helpful for examining the machine code manually.
e.g.
3456 7890 --> big endian
5634 9078 --> little endian
34567890 12345678 --> big endian
90785634 78563412 --> little endian
The Notepad++ has plugin "Hex Editor". In that options has "Start Layout" tab can do this well.
Using the sublime built-in search the address will stop you from searching continous binary bit.
If I delete the space between the hex word or mismatch the space, built-in search cannot tell the right result.
If I use some kind of complex regex, it maybe work for a while.
Binary or decimal or hex continous search. Allow space in user-input pattern string.
So how about a function for it?
documentation allows dumb-heads to become frustrated.
Please include a "how to invoke" line in your documentation.
tools... packages... hex viewer... toggle hex view (or other option)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.