How robertobissanti/tinyedit works
tinyedit is a single-document, full-screen POSIX terminal editor. The user opens or creates a file, edits text with familiar keyboard and optional mouse interactions, and saves changes; unsaved work can be recovered from automatic backups. The graph preserves the README’s major editing, search, highlighting, display, settings, clipboard, and terminal capabilities. Source evidence is limited to the supplied excerpts and SOURCE INDEX; unverified internal links are omitted rather than inferred.
Main entry points: tinyedit.c Editor runtime · buffer.c Text buffer · clipboard.c Clipboard · syntax.c Syntax highlighting
Components 18
Editor runtime
- Editor runtime
src/tinyedit.c - Allocation helpers
src/alloc.c
Document editing
- Text buffer
src/buffer.c - Undo history
src/history.c - UTF-8 handling
src/utf8.c
Editing features
- Search and replace
src/search.c - Clipboard
src/clipboard.c - Syntax highlighting
src/syntax.c - User syntax definitions
syntax-configs - Settings
src/settings.c
Terminal interface
- Terminal input
src/terminal.c - Menus and commands
src/menu.c - Screen rendering
src/render.c
Persistence
- File I/O
src/fileio.c - Backup recovery
src/backup.c
Other components
- Editor user
- System clipboard
- Local files
Connections 23
- Editor user → Editor runtime: edits files
README.md - Editor runtime → Terminal input: reads input
src/tinyedit.c - Editor user → Search and replace: finds and replaces
README.md - Editor user → Clipboard: copies and pastes
README.md - Clipboard → System clipboard: uses native tools
README.md - Editor user → Settings: changes preferences
README.md - Editor user → Menus and commands: navigates menus
README.md - Editor runtime → Local files: opens and saves
README.md - Editor runtime → Backup recovery: recovers unsaved work
README.md - Editor runtime → Text buffer: edits document
- Editor runtime → Undo history: records undo history
- Editor runtime → File I/O: loads and saves
- Editor runtime → Search and replace: runs searches
- Editor runtime → Syntax highlighting: highlights text
- Editor runtime → Settings: loads preferences
- Editor runtime → Menus and commands: dispatches commands
- Editor runtime → Screen rendering: draws interface
- Text buffer → UTF-8 handling: measures text
- Screen rendering → UTF-8 handling: measures display width
- Syntax highlighting → User syntax definitions: supports definitions
README.md - File I/O → Local files: reads and replaces
- Backup recovery → Local files: stores recovery data
- Allocation helpers → Text buffer: allocates storage