How eugenioenko/ttt works
TTT is a terminal IDE. Users launch the CLI with files or workspace folders; the app creates the interactive editor session, where users edit code, navigate/search workspace files, and manage Git changes. The editor also offers LSP language features, terminal panes, and plugins. Core editing uses buffers, undo, and syntax highlighting, while UI widgets and terminal rendering present the interface. The README documents major capabilities not fully shown in sampled source; links to those subsystems are omitted where their runtime wiring could not be verified.
Main entry points: app.go Application · editor_widget.go Editor widget · main.go CLI entry · manager.go Language services
Components 23
Entry and orchestration
- CLI entry
cmd/ttt/main.go - Application
internal/app/app.go - Settings
internal/config/settings.go
Editing and language
- Text buffer
internal/core/buffer/buffer.go - Undo stack
internal/core/undo/undo.go - Editor widget
internal/ui/editor_widget.go - Syntax highlighting
internal/highlight/highlighter.go - Language services
internal/lsp/manager.go
Workspace and Git
- Workspace search
internal/ui/search_widget.go - File explorer
internal/app/explorer.go - Workspace roots
internal/workspace/workspace.go - Git operations
internal/git/git.go - Repository state
internal/app/repository_state.go - Changes panel
internal/app/changes_panel.go
Terminal interface
- UI widgets
internal/ui/root.go - Terminal screen
internal/term/tcell_screen.go - Screen renderer
internal/render/renderer.go
Extensions
- Plugin manager
internal/plugin/manager.go - Plugin API
internal/plugin/api.go
Other components
- Editor user
- ripgrep
- Git executable
- LSP servers
Connections 25
- Editor user → CLI entry: launches
README.md - CLI entry → Application: creates session
cmd/ttt/main.go - CLI entry → Settings: loads settings
cmd/ttt/main.go - Application → UI widgets: uses widgets
internal/app/app.go - Application → Terminal screen: uses screen
internal/app/app.go - Application → Screen renderer: uses renderer
internal/app/app.go - Application → Language services: uses manager
internal/app/app.go - Application → Plugin manager: uses manager
internal/app/app.go - Application → Workspace roots: uses workspace
internal/app/app.go - Editor user → Editor widget: edits code
README.md - Editor widget → Text buffer: edits text
- Editor widget → Undo stack: supports undo
- Editor widget → Syntax highlighting: highlights code
- Editor widget → Language services: requests language features
- Language services → LSP servers: starts server
internal/lsp/manager.go - Editor user → Workspace search: searches workspace
README.md - Workspace search → ripgrep: runs searches
internal/ui/search_widget.go - Editor user → File explorer: navigates files
README.md - Editor user → Changes panel: reviews changes
README.md - Repository state → Git operations: reads repository state
internal/app/repository_state.go - Git operations → Git executable: runs Git
- Editor user → Plugin manager: uses extensions
README.md - Plugin manager → Plugin API: exposes API
- UI widgets → Screen renderer: draws interface
- Screen renderer → Terminal screen: updates screen
internal/render/renderer.go