#ed #filename

bin+lib edhex

Hex editor that works vaguely like ed

33 releases (1 stable)

1.0.0 Jun 1, 2022
0.4.2 May 5, 2022
0.4.1 Apr 6, 2022
0.3.13 Feb 20, 2022
0.3.1 Jun 9, 2021

#291 in Text editors

GPL-3.0 license

60KB
1K SLoC

edhex

A hex editor that works vaguely like ed

screenshot

Usage

edhex <filename>
echo '0,$p' |edhex -P <filename> |less -R

Differences from ed

  • Not every ed command is implemented
  • The prompt * is printed by default.
  • Uses byte numbers instead of line numbers.
  • There's a width setting W for printing out.
  • Byte numbers start from 0.
  • a, b, c, d, e, f can't be commands because they could be numbers.

Preferences

If you choose to save (P)references to $XDG_CONFIG_HOME or $HOME/.config/edhex/preferences, they will be automatically be loaded on startup.

Dependencies

~5–7MB
~119K SLoC