Skip to content

mdz grep / mdz search: source-level text search across .mdz archives #3

Description

@kylemwhite

Background

.mdz archives package markdown + assets into a zip, but that packaging defeats source-level text search: grep, GitHub code search, and cross-archive search in an editor can't see into zip contents. As docs and content collections grow, this becomes a real gap — searching a folder of .mdz archives for a term currently requires manually unzipping each one.

Proposal

Add a mdz grep <pattern> <path...> (and/or mdz search) command that:

  • Extracts and searches the markdown (and optionally manifest) content of one or more .mdz archives without writing to disk.
  • Supports the usual grep-adjacent conveniences: multiple files/globs, case-insensitive search, line-number output.
  • Is fast enough to run over a directory of archives in one invocation.

Notes

This is CLI-first; a follow-on could add an archive-aware index/search UI inside an editor app, but that's out of scope here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions