Repository navigation
feat(term): add --list metadata, JSON format, and -n ranges - #65
Merged
Merged
Conversation
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.
What changed
-nrange support (-n 3-5and reversed-n 5-3) to pick commands N..M back with output, oldest first, while keeping-n 5and-ibehavior unchanged and rejecting malformed or unreachable ranges clearly.HH:MMwhen today,YYYY-MM-DD HH:MMotherwise), exit code, and shortened cwd tocdg term --listrows, keeping indices aligned with what-ipicks under the same filters across list and output renderers.--list --format jsonoutputting{index, time, exit_code, cwd, command}rows without copying to the clipboard, supporting-nranges as well.README.md,README.ko.md, andsite/docs.Why
Lets users scan captured commands with timestamps, exit codes, and directories, then pull either one entry with
-ior a slice with-n A-B(or consume list rows via--format json).Tests
uv run --with pytest --with pywinpty pytest -q -p no:cacheprovider: 328 passed, 10 skippeduvx ruff@0.17.1 check .anduvx ruff@0.17.1 format --check .: passedconventions.py check .: 0 findingsBacklog: CDG-TERM-LIST