Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HexEditor (ncurses TUI)

A Vim-inspired terminal hex editor written in C with ncurses.

It supports modal editing, hex counts, architectural-word motions, split panes, tabs, marks, macros, command mode, and scripted startup input.

Build

  • make
  • Binary: ./hexeditor

Run

  • Open a file: ./hexeditor <file>
  • Launch unnamed buffer: ./hexeditor
  • Script startup keys: ./hexeditor -c '0x40Gi010203' <file>

Highlights

  • Normal/insert/visual modal editing.
  • Hex + ASCII edit surfaces (toggle: Ctrl-W T).
  • Splits: :sp, :vsp, navigation with Ctrl-W h/j/k/l.
  • Tabs: :tabnew, :tabnext, :tabprev, :tabclose, and gt/gT.
  • Marks/jumps: ma, 'a, `a, '', ``.
  • Operators/motions: d/c/y + motions, counts, visual selections.
  • Macros: qa...q, @a, counts with replay.
  • Search: /, n, N with text/hex patterns.
  • Ex commands: :w, :w <path>, :q, :q!, :x, :fill, :set wordbytes=<n>, :s/old/new/g.

Saving

  • Named buffer: :w saves to current file.
  • Unnamed buffer: use :w <path> to assign filename and save.

Tests

  • Run: make test
  • Includes scripted regressions for insert/open/substitute, visual edits, marks, macros, ASCII-plane ops, and save behavior.

Manual

  • Full reference: HEXEDITOR_MANUAL.html
  • Open locally: xdg-open HEXEDITOR_MANUAL.html

About

Vim-style hex editor

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages