Add grep line-match mode, slugify utility (0.3.0)#8
Merged
Merged
Conversation
New features: - grep(lines=True): search file content line-by-line and return "path:lineno:line" strings instead of just file paths. Supports ignore_case, invert, and path scoping. - Shell grep -n: new flag that activates line-match mode in the shell. Composable with -i/-v (e.g. grep -ni pattern /path). Also works on piped stdin. - slugify(): utility to convert any string into a valid Loopy path segment. Exported from the top-level module (from loopy import slugify). Also: - Added CHANGELOG.md - Updated README with new API docs and examples - 30 new tests (grep lines: 11, grep -n shell: 4, slugify: 9, ls root: 1, plus existing test for grep -n stdin and combined flags) Co-Authored-By: Claude Opus 4.6 <[email protected]>
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.
Summary
grep(lines=True)— search file content line-by-line, returnspath:lineno:linestrings instead of just pathsgrep -n— new flag for line-match mode, composable with-i/-vslugify()— utility to convert any string to a valid Loopy path segment (from loopy import slugify)CHANGELOG.md, updated README, bumped to 0.3.0Test plan
🤖 Generated with Claude Code