Repository navigation
fix(cli): keep verbose stats file paths on one row - #73
Merged
knight22-21 merged 2 commits intoOct 10, 2026
Merged
Conversation
sundaysebasidian-byte
marked this pull request as ready for review
October 3, 2026 14:53
knight22-21
approved these changes
Oct 10, 2026
knight22-21
left a comment
Owner
There was a problem hiding this comment.
LGTM! Clean handling of project-relative paths and table formatting to keep rows compact on deep trees, with solid test coverage.
Owner
|
Merged, thank you @sundaysebasidian-byte! This keeps file paths in \stats --verbose\ readable on deep directory structures without unwanted line wrapping. If CodePrism is useful to you, a star on the repo helps others find it. Would love to see more PRs from you. |
9 of 13 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #17.
stats --verbosecurrently includes the full absolute project prefix in every Path cell. Deep project directories make the table wrap each file across multiple rows. Display project-relative paths, cap the Path column at 60 characters, and render paths as single-line text with ellipsis while allowing that column to shrink on narrow terminals. Paths outside the project root fall back to their original display instead of failing.Added regression tests that build real temporary Python project indexes and query real SQLite storage. They cover absolute/relative project arguments, distinct same-named files, 80/120-column terminals, very long paths containing spaces, and an out-of-root stored record. Updated the changelog for the user-visible fix.
Validation after syncing main
6ee2ff6251af85f32dce90320b5ed956b98b1fa3, on macOS with the existing Python 3.14.6 development environment:ruff checkandruff format --checkpassed.--follow-imports=silent); CLI diagnostics were compared with the same check on current main. The touched CLI module retains the same 19 pre-existing mypy diagnostics as upstream after normalizing line offsets; no new diagnostics were introduced.Checklist:
ruff checkandruff format --checkpass.docs/changelog.mdupdated.AI assistance: implementation and tests were prepared with Codex and reviewed by a separate Codex agent. No dependencies were added or installed for this change. Python 3.12/3.13 and other operating systems were not run locally; those CI results must be assessed separately. Symlink normalization was checked against the indexer's existing root-resolution code but was not given a dedicated end-to-end test.