Skip to content

feat: --changed-only shows full relative paths#47

Merged
llimllib merged 2 commits intomainfrom
tree-experiment
Apr 11, 2026
Merged

feat: --changed-only shows full relative paths#47
llimllib merged 2 commits intomainfrom
tree-experiment

Conversation

@llimllib
Copy link
Copy Markdown
Owner

Summary

  • --changed-only now shows all changed files at or below the current directory with their relative paths (e.g. src/network/server.go instead of collapsing to src/)
  • Paths are relative to where you run it: from repo root you see src/network/server.go, from src/ you see network/server.go, from src/network/ you see server.go
  • Adds NO_COLOR environment variable support (https://no-color.org)
  • Extracts run() from main() for testability
  • Adds testscript-based integration tests

Closes #44

Test plan

  • Existing unit tests pass
  • New integration tests cover: basic listing, changed-only filtering, full relative paths from root, scoped paths from subdirectories, leaf directory basenames
  • Manual testing with --nerdfont, NO_COLOR, normal mode

🤖 Generated with Claude Code

Previously, --changed-only would only show files in the current directory
(collapsing subdirectories into directory names). Now it shows all changed
files at or below the current directory with their relative paths, e.g.
"src/network/server.go" instead of just "src/".

Also adds:
- NO_COLOR environment variable support (https://no-color.org)
- Extract run() from main() for testability
- testscript-based integration tests
@llimllib llimllib merged commit 17b522a into main Apr 11, 2026
1 check passed
@llimllib llimllib deleted the tree-experiment branch April 11, 2026 03:14
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.

feature: tree view

1 participant