How dariiolopeez/easy-notes works
easy-notes is a local terminal note manager: users invoke commands to create, list, view, edit, and categorize Markdown notes, with YAML configuration for storage location and editor choice. The root command initializes configuration and filesystem storage; command handlers use those shared dependencies, while the note model parses and serializes frontmatter and the editor adapter launches an external editor. The README documents configuration display and Unix-tool workflows; the configuration command implementation was not sampled, so its connection is shown as unverified.
Main entry points: root.go Root setup · fs_storage.go Filesystem storage · new.go Create note · edit.go Edit note
Components 17
CLI commands
- CLI entry
cmd/easy-notes/main.go - Root setup
cmd/root/root.go - Create note
cmd/root/new.go - List notes
cmd/root/list.go - View note
cmd/root/view.go - Edit note
cmd/root/edit.go - Manage categories
cmd/root/category.go - Show configuration
cmd/root/config_cmd.go
Note domain
- Note model
internal/note/note.go
Runtime services
- Configuration
internal/config/config.go - Editor launcher
internal/editor/editor.go
Local files
- Filesystem storage
internal/storage/fs_storage.go - Markdown note files
- YAML config file
Other components
- Terminal user
- External editor
- Markdown renderer
Connections 27
- Terminal user → CLI entry: runs
README.md - CLI entry → Root setup: executes
cmd/easy-notes/main.go - Root setup → Configuration: loads
cmd/root/root.go - Root setup → Filesystem storage: initializes
cmd/root/root.go - Root setup → Create note: registers
cmd/root/new.go - Root setup → List notes: registers
cmd/root/list.go - Root setup → View note: registers
cmd/root/view.go - Root setup → Edit note: registers
cmd/root/edit.go - Root setup → Manage categories: registers
cmd/root/category.go - Root setup → Show configuration: registers
README.md - Configuration → YAML config file: reads/writes
internal/config/config.go - Create note → Note model: builds note
cmd/root/new.go - Create note → Filesystem storage: saves
cmd/root/new.go - Create note → Configuration: resolves editor
cmd/root/new.go - Create note → Editor launcher: opens
cmd/root/new.go - List notes → Filesystem storage: lists
cmd/root/list.go - View note → Filesystem storage: finds note
cmd/root/view.go - View note → Markdown renderer: renders with
cmd/root/view.go - Edit note → Filesystem storage: finds and saves
cmd/root/edit.go - Edit note → Configuration: resolves editor
cmd/root/edit.go - Edit note → Editor launcher: opens
cmd/root/edit.go - Edit note → Note model: parses note
cmd/root/edit.go - Manage categories → Filesystem storage: creates category
cmd/root/category.go - Filesystem storage → Markdown note files: reads/writes
internal/storage/fs_storage.go - Filesystem storage → Note model: parses and marshals
internal/storage/fs_storage.go - Editor launcher → External editor: launches
internal/editor/editor.go - Show configuration → Configuration: displays