Skip to content

Add grep line-match mode, slugify utility (0.3.0)#8

Merged
tg1482 merged 1 commit into
mainfrom
improvements
Feb 17, 2026
Merged

Add grep line-match mode, slugify utility (0.3.0)#8
tg1482 merged 1 commit into
mainfrom
improvements

Conversation

@tg1482
Copy link
Copy Markdown
Owner

@tg1482 tg1482 commented Feb 17, 2026

Summary

  • grep(lines=True) — search file content line-by-line, returns path:lineno:line strings instead of just paths
  • Shell grep -n — new flag for line-match mode, composable with -i/-v
  • slugify() — utility to convert any string to a valid Loopy path segment (from loopy import slugify)
  • Added CHANGELOG.md, updated README, bumped to 0.3.0

Test plan

  • 338 tests pass (30 new)
  • grep lines: 11 tests covering basic, multiline, case sensitivity, invert, empty, scoped
  • grep -n shell: 4 tests covering files, recursive, stdin, combined flags
  • slugify: 9 tests covering special chars, dots, underscores, unicode, round-trip validation

🤖 Generated with Claude Code

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 <noreply@anthropic.com>
@tg1482 tg1482 merged commit beb0a8a into main Feb 17, 2026
8 checks passed
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