How lusingander/serie works
Serie is a terminal Git-history browser: users launch it in a repository, inspect an ordered commit graph and refs, search and open commit details, and optionally run configured commands. Git metadata feeds graph layout and terminal-image rendering; the TUI presents browsing modes and routes keyboard events. Configuration controls graph appearance, keybindings, search, and user commands. The graph reflects README capabilities as well as sampled code; several internal UI connections are omitted where excerpts do not establish callers.
Main entry points: main.rs CLI startup · app.rs Application state · views.rs View coordination · image.rs Graph image rendering
Components 25
Startup and settings
- CLI startup
src/main.rs - Configuration
src/config.rs - Color themes
src/color.rs
Git history and graph
- Git repository data
src/git.rs - Graph layout
src/graph/calc.rs - Graph geometry
src/graph/geometry.rs - Graph image rendering
src/graph/image.rs - Graph facade
src/graph.rs
Terminal interface
- Application state
src/app.rs - Event processing
src/event.rs - Keybindings
src/keybind.rs - View coordination
src/view/views.rs - Commit list view
src/view/list.rs - Commit detail view
src/view/detail.rs - Refs view
src/view/refs.rs - Help view
src/view/help.rs - User command view
src/view/user_command.rs - Commit list widget
src/widget/commit_list.rs - Commit detail widget
src/widget/commit_detail.rs - Ref list widget
src/widget/ref_list.rs - Command output widget
src/widget/commit_user_command.rs - Search options
src/search.rs
Commands and protocol
- Image protocols
src/protocol.rs - External commands
src/external.rs
Other components
- Repository user
Connections 37
- Repository user → CLI startup: launches
README.md - CLI startup → Configuration: loads
src/main.rs - CLI startup → Application state: starts
src/main.rs - CLI startup → Git repository data: configures
src/main.rs - CLI startup → Graph facade: configures
src/main.rs - CLI startup → Image protocols: selects
src/main.rs - CLI startup → Keybindings: creates
src/main.rs - CLI startup → Event processing: imports
src/main.rs - CLI startup → Color themes: imports
src/main.rs - CLI startup → External commands: imports
src/main.rs - Graph facade → Graph layout: exposes
src/graph.rs - Graph facade → Graph image rendering: exposes
src/graph.rs - Graph layout → Git repository data: reads metadata
src/graph/calc.rs - Graph image rendering → Image protocols: prepares images
src/graph/image.rs - Graph image rendering → Color themes: uses colors
src/graph/image.rs - Event processing → View coordination: uses refresh context
src/event.rs - Keybindings → Event processing: maps keys
src/keybind.rs - Application state → Commit detail view: opens detail
src/app.rs - Application state → User command view: opens command view
src/app.rs - Application state → Commit list widget: builds list state
src/app.rs - Ref list widget → Git repository data: uses refs
src/widget/ref_list.rs - Ref list widget → Application state: references state
src/widget/ref_list.rs - Command output widget → Application state: supports commands
src/widget/commit_user_command.rs - Repository user → Application state: browses history
README.md - Repository user → Search options: searches commits
README.md - Repository user → External commands: runs configured commands
README.md - Git repository data → Application state: provides history
- Application state → View coordination: coordinates views
- View coordination → Commit list view: selects view
- Commit list view → Commit list widget: renders list
- Commit detail view → Commit detail widget: renders detail
- View coordination → Refs view: selects view
- View coordination → Help view: selects view
- View coordination → User command view: selects view
- User command view → Command output widget: renders output
- Commit list widget → Search options: uses options
- Graph image rendering → Graph geometry: uses geometry