Giter Site home page Giter Site logo

hexviewer's People

Contributors

darkred avatar ender672 avatar evandrocoan avatar facelessuser avatar horlogeskynet avatar jpuge avatar jsadeli avatar orcinus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hexviewer's Issues

Non-monospace font

I get a non-monospaced font when switching to HexViewer via Ctrl+Shift+B,H.

I do not have a monospaced font in ST2 in general. See screenshot.
nonmonospaced

Inspector not available

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

inspector not available

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.

Add further settings options

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.

No Hex Inspector?

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.

Additional basic checksums

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.

Reload file command

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.

Set Bytes Per Line - Any value

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. :-)

How to edit?

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?

Export Bin not working

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.

Direct editing and Find&Replace

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?

Support Additional Text Encodings in Hex Viewer

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:

  1. Create a new text file in Sublime Text and paste in the following text: "Hello 人亻𠆢龟龜". This should appear as "Hello " followed by five Chinese characters. (You may need to install a Chinese font first.)
  2. Save the file.
  3. Toggle to hex view. The text at the right will show "Hello ................" (sixteen dots).

Support Relative Starting Addresses

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

actual
expected

Suggest more digits for double in hex inspector

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.

Entering strings in the hex edit panel doesn't work

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.

HexViewer refuses to load file larger than 50000.0KB.

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.

Rename the command "Find by Address" into "Go to Offset"

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.

Use Insert Mode to Get Underline Caret

The underline caret used for insert mode is more visually accurate for hex viewing since it's always directly under one individual character instead of between.

Current:
bar_caret

Proposed:
underline_caret

Just something to consider. If it doesn't pose any other complications it might be worth the small change.

Sublime Text 3

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.

No installation instructions, basic usage docs

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.

Unable to export bin

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.

Font bug

image

Apparently not so monospace...

What information do you need?

.sublime-keymap errors

Hi,
There are some missing comma in commit SHA: 42f24e7 , see my comments.
On Windows, ST2 refuse to start with this error. Not nice...

Issue with Sublime Text 3 and Hex Toggle

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

Crash on large file

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.

Font

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.

Hex Inspector does not close when closing a file opened in Hex View

Scenario

  • Open a file
  • Enable the HexView by using Ctrl-Shift-P: Hex Viewer: Toggle Hex View
  • Verify that the Hex Inspector view is shown at the bottom of the screen
  • Close the active file using Ctrl-F4

Expected result

  • The Hex Viewer with the open file closes, and the Hex Inspector view is closed as well

Actual result

  • The open file closes, but the Hex Inspector view at the bottom remains open, until the Hex Viewer is explicitly enabled and disabled again.

Support for ST3?

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.

Change option 'Show Hex Inspector' to 'Toggle Hex Inspector'

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..

Executing the command "Hex Viewer: Toggle Hex View" has no effect in some cases

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

Opening images with hex viewer

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.

Font configuration

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

screen shot 2015-01-22 at 11 41 39 am

screen shot 2015-01-22 at 11 41 55 am

How edit text in HexViewer?

See how I edit the text in my editor 010 Editor.

010 Editor

Is it possible to do so in HexViewer? I read documentation and I found only command hex_editor that edits bytes, no text.

Thanks.

We have groups_byte_by_bits. Can we have endianess setting for that?

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.

Binary search

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?

Unable to get started

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.