8000 refactor: simplify to session-only mode by wilmoore · Pull Request #4 · wilmoore/p · GitHub
[go: up one dir, main page]

Skip to content

refactor: simplify to session-only mode - #4

Merged
wilmoore merged 1 commit into
mainfrom
feat/tmux-first-window-named-home
Feb 1, 2026
Merged

wilmoore merged 1 commit into
mainfrom
feat/tmux-first-window-named-home

Conversation

@wilmoore
@wilmoore wilmoore commented Feb 1, 2026
Copy link
Copy Markdown
Owner

Summary

  • Remove CDPATH directory discovery to focus on tmux session management
  • Remove drill-down navigation, status bar styling, and config injection
  • Simplify to listing existing sessions with interactive selector
  • Retain type-to-filter and arrow key navigation

This reduces the codebase by ~60% and eliminates the CDPATH configuration requirement.

Changes

Area Change
main.go Remove CDPATH check and directory discovery
internal/tmux/execute.go Remove session creation, keep attach/switch only
internal/tmux/session.go Unchanged (session listing)
internal/ui/selector.go Remove directory display, simplify to sessions
Deleted config.go, directory.go, naming.go, tests

ADR

Added ADR 006: Simplify to Session-Only Mode which supersedes ADRs 001, 003, 004, and 005.

Post-Merge

Tag v0.2.0 after merge:

git tag v0.2.0
git push origin v0.2.0

Test Plan

  • go build succeeds
  • go vet ./... passes
  • Manual test: run ./p with existing tmux sessions
  • Manual test: type-to-filter works
  • Manual test: arrow navigation works
  • Manual test: Enter attaches to session

Remove CDPATH directory discovery to focus on tmux session management:

- Remove directory discovery, naming, and config injection
- Remove drill-down navigation and status bar styling
- Simplify to listing existing sessions with interactive selector
- Retain type-to-filter and arrow key navigation

This reduces the codebase by ~60% and eliminates the CDPATH
configuration requirement.

See ADR 006 for rationale.
@wilmoore
wilmoore merged commit 59ad8a7 into main Feb 1, 2026
@wilmoore
wilmoore deleted the feat/tmux-first-window-named-home branch February 1, 2026 06:17
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

0