diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-05-12 18:11:27 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-05-12 18:11:27 +0200 |
| commit | d2b64a395c117c73191560629062b29127bbb940 (patch) | |
| tree | fbb46f0e987630b426725c51c176fbc254533bd5 /README.md | |
| parent | 289b611c406a127e59a76aeba09341cffedfdd2c (diff) | |
docs: update kdev section with flags table and known limitationv0.9.1
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 30 |
1 files changed, 25 insertions, 5 deletions
@@ -7,12 +7,32 @@ ## kdev -`go run github.com/martinlehoux/kagamigo/cmd/kdev --repo=<repo>` +`go run github.com/martinlehoux/kagamigo/cmd/kdev@latest --repo=<repo> --keywords=TODO` -- [ ] Ignore bin files or too large -- [ ] Ignore regex -- [ ] Parallel -- [ ] Log level +Scans a git repository for keyword occurrences and shows when each matching line was last modified (via `git blame`). + +### Flags + +| Flag | Default | Description | +|------|---------|-------------| +| `--repo` | `.` | Path to the repository | +| `--keywords` | _(required)_ | Comma-separated keywords to search for | +| `--max` | `25` | Maximum number of results to display | +| `--sort` | `date` | Sort order: `date` or `random` | +| `--after` | | Only show results after this date (ISO format) | +| `--before` | | Only show results before this date (ISO format or `7d`) | +| `--algo` | `git` | Blame algorithm: `git`, `go-git`, or `stat` | +| `--workers` | `NumCPU` | Number of parallel workers | +| `--maxFileSize` | `1048576` | Skip files larger than this size in bytes | +| `--ignore` | | Regex patterns to skip files by relative path | +| `--excludes` | `.git,.kdev.yaml` | Directory/file names to exclude | +| `--logLevel` | `info` | Log level: `debug`, `info`, `warn`, `error` | + +Settings can also be stored in `.kdev.yaml` at the repo root. + +### Known limitation + +`git blame` runs once per file with keyword matches (not per line). For repositories with many matching files, `--workers` controls parallelism. ## ki18n |
