Inspired by Vim, Kakoune and Hiew.
Reverse engineers, software engineers and other IT people often need to work with binary files. Hex editors are usually the go-to tool for dealing with binary file formats when a more specialized tool isn't available. Many of the existing hex editors lack support for modal editing, which Vim/Kakoune/Emacs users will miss. Hiew supports it to an extent, but it's non-free software, and its keybinds are unintuitive. Teehee is designed to offer a native-feeling experience to Kakoune and Vim users, while also providing additional hex editing capabilities like coloured marks for regions of data and encryption/compression scripts.
Teehee supports multiple selections, efficient selection modifying commands and various data editing operations.
hjkl
for movement (press shift to extend selection instead)
^
< h j l >
k
v
g
[hjkl
] for jumping (G
[hjkl
] to extend selection instead)
h
: to line startl
: to line endk
: to file startj
: to file end;
to collapse selections to cursors<a-;>
(alt and ;) to swap cursor and selection end<a-s>
(alt and s) to split selection to multiple selections of size...
b
: 1 Bytew
: 2 bytes (Word)d
: 4 bytes (Dword)q
: 8 bytes (Qword)o
: 16 bytes (Oword)d
to delete selected data from bufferi
to enter insert mode at the beginning of selections (I
to insert ascii instead of hex)
a
instead of i
to enter append mode insteadc
instead of i
to delete selection contents, then enter insert mode<c-n>
to insert a null byte in ascii mode<c-o>
to switch between ascii and hex inserting(
and )
to cycle main selection<space>
to keep only main selection, <a-space>
to keep all selections but mainr<digit><digit>
to replace a each selected character with the character given by the two hex digits
R<key>
instead of r
to replace with a single ascii character insteadr<c-n>
to replace with null bytesy
to yank/copy selections to register "
p
to paste register "
contents from y
/d
/c