How arturafriansyah/cheatsheet works
This is a macOS SwiftUI cheatsheet app: users search and browse saved command notes, select a command, optionally fill placeholders, then copy the result. The single 112 KB source file combines UI, app state, persistence, highlighting, and system integrations; the excerpts show storage writes, note actions, placeholder UI, keyboard monitoring, and login-item registration, but not enough surrounding code to establish all call paths. The map keeps these responsibilities distinct without assuming unsupported connections.
Main entry points: main.swift Note actions
Components 14
Cheatsheet interaction
- SwiftUI app
main.swift - Search and browse
main.swift - Note actions
main.swift - Note editor
main.swift - Settings
main.swift
Content and presentation
- Cheatsheet store
main.swift - Sample cheatsheets
main.swift - Placeholder completion
main.swift - Code highlighting
main.swift - Localization
main.swift
macOS services
- System clipboard
- Keyboard monitor
main.swift - Login item service
Other components
- User
Connections 12
- User → SwiftUI app: uses
- SwiftUI app → Search and browse: presents
main.swift - Search and browse → Note actions: selects notes
main.swift - Note actions → Cheatsheet store: updates notes
main.swift - Note editor → Cheatsheet store: edits notes
main.swift - Sample cheatsheets → Cheatsheet store: seeds content
main.swift - Note actions → Placeholder completion: fills values
main.swift - Note actions → Code highlighting: formats code
main.swift - Note actions → System clipboard: copies command
- SwiftUI app → Keyboard monitor: monitors keys
main.swift - Settings → Login item service: registers app
main.swift - SwiftUI app → Localization: uses labels
main.swift