Skip to content

feat: Include line in --json search output#506

Merged
tobi merged 1 commit into
tobi:mainfrom
danmackinlay:fix-505-json-line-output
Apr 5, 2026
Merged

feat: Include line in --json search output#506
tobi merged 1 commit into
tobi:mainfrom
danmackinlay:fix-505-json-line-output

Conversation

@danmackinlay

@danmackinlay danmackinlay commented Apr 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add line to JSON search results in the formatter using existing snippet extraction
  • preserve existing snippet/body behavior for normal and --full modes
  • add formatter tests covering line in JSON output
  • add changelog note under Unreleased

Testing

  • npx vitest run --reporter=verbose test/formatter.test.ts

Closes #505

@danmackinlay danmackinlay changed the title Include line in --json search output feat: Include line in --json search output Apr 5, 2026
@tobi tobi merged commit 76a2f0f into tobi:main Apr 5, 2026
tanarchytan referenced this pull request in tanarchytan/lotl Apr 8, 2026
feat: Include line in --json search output

# Conflicts:
#	CHANGELOG.md
lucndm pushed a commit to lucndm/qmd that referenced this pull request Jun 7, 2026
feat: Include line in --json search output

# Conflicts:
#	CHANGELOG.md
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.

Include line in --json search output

2 participants