Added note and colour tagging functionality #42
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds the ability to set notes for certain bytes, and to mark bytes or ranges of bytes with custom colours. This is particularly useful when trying to understand a binary format.
These are interactive functions:
Esc-c - prompt to mark a byte or mark'ed range of bytes as one of three colours
Esc-o - add a custom note to a byte. It will be displayed in the status line when the cursor is on the byte
Esc-d - delete a note
Esc-g - display a note
Esc-s - write the colour and note markup to a tag file (more on that below)
Markup can be persisted to a simple tag file with the following format:
n:
c: <colour number 1-3>
colour number is 1 - cyan, 2 - magenta, 3 - yellow
For example, a tag file marking up the first two fields of an ELF file in colour and with notes would look like:
Tag files are written to the currently edited filename with ".tags" appended