gpui_hexeditor
A reusable hex editor widget built with gpui and gpui_component.
Features
- Hex grid with optional ASCII pane
- Selection, drag selection, row selection
- Hex editing and ASCII editing
- Undo / redo
- Dirty byte tracking
- Internal scrolling with virtual rows
- Theme-aware styling via
gpui_component - Can either use fixed visible rows or fill the parent container height
Installation
[]
= "0.1.0"
Quick Start
use Context;
use ;
Configuration
HexEditorConfig supports:
bytes_per_rowshow_asciishow_toolbarshow_status_barread_onlyvisible_rowsfill_container
Use fill_container = true when embedding the editor inside a panel that already controls height.
Examples
Keyboard Shortcuts
Ctrl/Cmd + C: copy selected bytes as hex textCtrl/Cmd + X: cut selected bytes as hex textCtrl/Cmd + V: paste hex textCtrl/Cmd + A: select allCtrl/Cmd + Z: undoCtrl/Cmd + Shift + Z: redoHome/End/PageUp/PageDown: navigationBackspace/Delete: clear current byte
License
MIT