Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Dev-Jahnv0.2.0In 1 marketplace
Lightweight scoped string substitution: replace A with B in lines, line ranges, markdown sections, files, or directories
Claude loads one when your task matches it, or you run it by name.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A lightweight, single-skill Claude Code plugin for scoped string substitution — replace A with B in a line, a line range, a markdown section, one or more files, or whole directories. The heavy lifting is done by a small bash script (bin/ezsub); the sub skill teaches Claude when and how to invoke it. While the plugin is enabled, bin/ is added to the Bash tool's PATH, so Claude invokes it as the bare ezsub command.
From the marketplace (recommended) — inside Claude Code:
/plugin marketplace add Dev-Jahn/jahns-cc-marketplace
/plugin install ezsub@jahns-cc-marketplace
For local development, load the plugin directly from a checkout instead:
claude --plugin-dir /path/to/ezsub
Through Claude, ask naturally — "replace foo with bar in src/", "rename this term across the docs", "치환". Claude picks the scope and runs the script. Or call the slash command directly:
/ezsub:sub foo bar src/ --exclude "*.md" --dry-run
Run the script by hand:
bin/ezsub <pattern> <replacement> [options] <path...>
Preview a directory-wide change, skipping markdown, then apply it:
ezsub foo bar src/ --exclude "*.md" --dry-run
ezsub foo bar src/ --exclude "*.md"
Substitute only inside a markdown section:
ezsub "old term" "new term" README.md --section "Setup"
Substitute only within a line range:
ezsub TODO DONE notes.txt --lines 10-20
Whole-word, case-insensitive, across .py files only:
ezsub cat dog project/ --word --ignore-case --ext py
Regex with a capture-group backref:
ezsub '([a-z]+)_([0-9]+)' '\2_\1' data.txt --regex
| Option | Effect |
|---|---|
--line N | Only line N (single regular-file path). |
--lines N-M | Inclusive line range (--lines N for one line). |
--section TEXT | Markdown section whose heading text equals TEXT (case-insensitive), through the next heading of equal/higher level. |
--exclude GLOB | Skip paths matching GLOB against the relative path, basename, or any parent directory component (so --exclude node_modules skips nested a/node_modules/b.js); repeatable. |
--ext EXT | Only process files with these extensions (with or without leading dot); repeatable. |
--regex | PATTERN is a POSIX ERE; REPLACEMENT may use & and \1 backrefs. |
--word | Match whole words only. |
--ignore-case | Case-insensitive match. |
--dry-run | Print a unified diff of would-be changes; edit nothing. |
-h, --help | Show usage. |
-- | Stop option parsing (to substitute a literal --foo). |
By default PATTERN and REPLACEMENT are literal strings — metacharacters (., *, &, /, …) are matched verbatim. At least one PATH is always required; directories are traversed recursively, .git directories are pruned by default, and binary files are skipped. An explicitly-listed file path is always processed unconditionally. Narrowing options (--line, --lines, --section) require exactly one regular-file path and are mutually exclusive.
--regex mode does not support a / inside the pattern or replacement — it is sed's substitution delimiter, so a literal / would break the command.--section heading detection is line-based: a #-prefixed line inside a fenced code block can be mistaken for a real markdown heading.sed -E -i, the I substitution flag, and \b word boundaries.${var,,} and [[ ... =~ ... ]]).Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Indexed from d2052e9Marketplace JSON
ezsub@jahns-cc-marketplace is listed by dev-jahn/jahns-cc-marketplace — review the source before installing
npx claudepluginhub dev-jahn/jahns-cc-marketplace --plugin ezsubPlugins from other owners that cover similar ground