Edit File Lines
Createdoakenai
Facilitates precise, line-based modifications to text files within specified directories via string or regex pattern matching.
About
Edit File Lines is a TypeScript-based server designed for making precise, line-based edits to text files. It offers tools for replacing entire lines or specific text matches using string or regular expression patterns, preserving line formatting and handling multiple lines. The server features a dry-run mode to preview changes and an approval mechanism for secure application of edits, ensuring controlled modifications to files within allowed directories.
Key Features
- Line-based editing with string or regex pattern matching
- Dry-run mode for previewing changes
- Two-step editing process with change approval
- Whitespace normalization for pattern matching
- Tools for searching and inspecting file lines
Use Cases
- Automated configuration file updates
- Code refactoring and modification
- Updating JSX component structures