How quirky1869/aed works
AED is a terminal disk-space explorer. The user enters a path and exclusions, starts a recursive scan, then browses the resulting size-ranked tree with sorting, hidden-file filtering, refresh, and file-opening or shell actions. The scanner builds a tree while accounting for hardlinks and partition size; the UI model coordinates input and navigation, and the view renders the interface. Source excerpts show the main scan and UI relationships; some Bubble Tea rendering and refresh wiring is not fully shown.
Main entry points: model.go UI model · view.go TUI rendering · main.go Program entry · scanner.go Directory scanner
Components 11
Application control
- Program entry
cmd/aed/main.go
Disk scanning
- Directory scanner
scanner/scanner.go
Terminal interface
- UI model
ui/model.go - Path autocomplete
ui/autocomplete.go - TUI rendering
ui/view.go - UI language
ui/lang.go - Visual styles
ui/styles.go
Other components
- Terminal user
- Local filesystem
- OS file explorer
- User shell
Connections 11
- Terminal user → Program entry: launches
README.md - Program entry → UI model: initializes
cmd/aed/main.go - UI model → Directory scanner: starts scans
ui/model.go - Directory scanner → Local filesystem: reads metadata
scanner/scanner.go - UI model → Local filesystem: completes paths
- UI model → Path autocomplete: requests suggestions
ui/model.go - UI model → TUI rendering: updates display
- TUI rendering → UI language: uses text
ui/view.go - TUI rendering → Visual styles: applies styles
ui/view.go - UI model → OS file explorer: opens selection
ui/model.go - UI model → User shell: starts shell
ui/model.go