How 0x7c13/notepads works
Notepads is a lightweight Windows text editor organized around launching or opening files, editing them in tabbed Sets, and preserving or exporting work. The README documents Markdown preview, side-by-side diff, command-line launch, handwriting, and session snapshots; the tree identifies their implementation areas. The graph connects only relationships supported by the README or the supplied source index/excerpts. Several feature implementations were not sampled, so their internal call paths are left unspecified.
Main entry points: App.xaml.cs Application startup · NotepadsMainPage.xaml.cs Main page · ActivationService.cs Activation service · TextEditorCore.cs Text editor
Components 20
App lifecycle
- Application startup
src/Notepads/App.xaml.cs - Activation service
src/Notepads/Services/ActivationService.cs - Main page
src/Notepads/Views/MainPage/NotepadsMainPage.xaml.cs - Tabbed Sets
src/Notepads.Controls/SetsView/SetsView.cs
Editing and files
- Text editor
src/Notepads/Controls/TextEditor/TextEditorCore.cs - Text file model
src/Notepads/Models/TextFile.cs - File operations
src/Notepads/Views/MainPage/NotepadsMainPage.IO.cs - Filesystem utilities
src/Notepads/Utilities/FileSystemUtility.cs - Session snapshots
src/Notepads/Core/SessionManager.cs - Session metadata
src/Notepads/Core/SessionDataModels/NotepadsSessionData.cs
Editor features
- Markdown preview
src/Notepads.Controls/MarkdownTextBlock/Markdown/MarkdownDocument.cs - Markdown control
src/Notepads.Controls/MarkdownTextBlock/MarkdownTextBlock.cs - Diff viewer
src/Notepads/Controls/DiffViewer/SideBySideDiffViewer.xaml.cs - Find and replace
src/Notepads/Controls/FindAndReplace/FindAndReplaceControl.xaml.cs - Command handlers
src/Notepads/Commands/KeyboardCommandHandler.cs
Settings and services
- Application settings
src/Notepads/Services/AppSettingsService.cs - Theme settings
src/Notepads/Services/ThemeSettingsService.cs - Usage telemetry
src/Notepads/Services/AnalyticsService.cs
Other components
- Editor user
- CLI launch
Connections 19
- Editor user → Application startup: launches
README.md - CLI launch → Application startup: launches
README.md - Application startup → Activation service: activates
src/Notepads/App.xaml.cs - Activation service → Main page: routes to
- Main page → Tabbed Sets: hosts tabs
README.md - Editor user → Text editor: edits text
README.md - Main page → File operations: opens and saves
README.md - File operations → Filesystem utilities: uses
- Text editor → Text file model: edits
- Main page → Session snapshots: snapshots session
README.md - Session snapshots → Session metadata: stores
src/Notepads/Core/SessionManager.cs - Editor user → Markdown control: previews Markdown
README.md - Markdown control → Markdown preview: parses
- Editor user → Diff viewer: compares changes
README.md - Editor user → Find and replace: searches text
- Editor user → Command handlers: uses shortcuts
README.md - Application startup → Application settings: initializes
src/Notepads/App.xaml.cs - Application startup → Theme settings: initializes
src/Notepads/App.xaml.cs - Application startup → Usage telemetry: tracks events
src/Notepads/App.xaml.cs