How puritymind/winedit works
WinEdit is a native Windows terminal text editor. A user launches the editor, which initializes its console interface, then edits or searches a document and saves changes; rendering, input, syntax highlighting, and clipboard access support that workflow. The README also documents themes, menus, dialogs, selection, undo/redo, and navigation. Some subsystem links are based on README descriptions because the sampled editor implementation is incomplete.
Main entry points: Editor.cpp Editor workflow · main.cpp CLI entry · Document.cpp Document model and file I/O · Console.cpp Console input and rendering
Components 13
Editor application
- CLI entry
src/main.cpp - Editor workflow
src/Editor.cpp - Shared types and themes
include/Common.hpp
Document editing
- Document model and file I/O
src/Document.cpp - Document search
src/Document.cpp - Syntax highlighting
src/Syntax.cpp
Console presentation
- Console input and rendering
src/Console.cpp - Menus, dialogs, and views
src/Editor.cpp
Windows integrations
- Unicode clipboard
src/Clipboard.cpp - Local files
- Windows Console API
- Windows system clipboard
Other components
- User
Connections 11
- User → CLI entry: launches
src/main.cpp - CLI entry → Editor workflow: initializes and runs
src/main.cpp - Editor workflow → Document model and file I/O: edits and queries
src/Editor.cpp - Editor workflow → Document search: searches
README.md - Editor workflow → Syntax highlighting: highlights with
README.md - Editor workflow → Unicode clipboard: copies and pastes
README.md - Editor workflow → Console input and rendering: renders and reads events
README.md - Menus, dialogs, and views → Shared types and themes: uses theme definitions
README.md - Document model and file I/O → Local files: reads and writes
src/Document.cpp - Console input and rendering → Windows Console API: uses
src/Console.cpp - Unicode clipboard → Windows system clipboard: reads and writes
src/Clipboard.cpp