Skip to content

Remove in-TUI terminal pane feature#700

Merged
Iron-Ham merged 1 commit into
mainfrom
Iron-Ham/remove-terminal-feature
Apr 21, 2026
Merged

Remove in-TUI terminal pane feature#700
Iron-Ham merged 1 commit into
mainfrom
Iron-Ham/remove-terminal-feature

Conversation

@Iron-Ham
Copy link
Copy Markdown
Owner

Summary

Removes the in-TUI terminal pane that was toggled via ` / T / Ctrl+Shift+T and focused via :t. Net -4539 / +113 across 30 files.

What's gone:

  • internal/tui/terminal/ package (manager + process + tests)
  • internal/tui/view/terminal.go renderer
  • ` / T key bindings, Ctrl+Shift+T dir switch
  • :term / :terminal / :t / :termdir * commands
  • input.ModeTerminal, TransitionToTerminal, handleTerminalMode
  • EnterTerminalMode / ToggleTerminal / TerminalDirMode result fields, IsTerminalVisible dep
  • ModeBadgeTerminal and terminal-pane styles
  • TerminalFocused / TerminalVisible / TerminalDirMode fields on HelpBarState, ModeIndicatorState, RenderContext
  • "Terminal Pane" help panel section
  • renderTerminalPane and terminal lifecycle hooks in app.Update() (cleanup, resize, output capture)

What replaces it:
The terminalManager *terminal.Manager field on Model is replaced with two flat int fields (width, height) plus a small mainAreaHeight(extraFooterLines int) int helper that inlines the pane-dimension math the remaining callers need. Behavior is equivalent: same HeaderFooterReserved constant, same 10-line minimum clamp.

Preserved (orthogonal to the pane):

  • tuimsg.BellMsg / RingBell still forward tmux bells from instance sessions
  • Ctrl+] still exits input mode
  • t/T in filter mode still toggle the task category

Test plan

  • go build ./... clean
  • go vet ./... clean
  • gofmt -l . clean
  • go test -race ./... — all packages pass (one pre-existing failure TestGolangciLintCompliance in internal/ is a Go 1.25/1.26 toolchain mismatch that also fails on main)
  • grep across repo finds zero leftover references to removed symbols (terminalManager, ModeTerminal, IsTerminalVisible, TerminalFocused, ModeBadgeTerminal, renderTerminalPane, etc.)
  • Manual smoke: launch TUI, confirm sidebar + output layout still correct at narrow and wide terminal sizes

Deletes the terminal pane toggle (` / T), the internal/tui/terminal/
package, the view/terminal.go renderer, the :term/:t/:termdir commands,
the ModeTerminal input-router state, and the terminal-specific mode
badge / help entries. Replaces the terminalManager wrapper on Model with
flat width/height fields plus a small mainAreaHeight() helper, since the
only remaining consumers needed the pane-dimension math.

Net: 30 files, -4539 / +113.
@Iron-Ham Iron-Ham merged commit 56413c4 into main Apr 21, 2026
6 checks passed
@Iron-Ham Iron-Ham deleted the Iron-Ham/remove-terminal-feature branch April 21, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant