sed
Installation
SKILL.md
sed - Stream Editor with Interactive Preview
The sed module extends the classic stream editor by adding an interactive preview mode. Users can test their regex substitutions and see context differences (ctrl-s) in real-time before modifying files.
When to Activate
- When the user wants to perform text search and replace operations.
- When an interactive preview of regex effects is needed to avoid errors.
- When performing bulk line deletions or insertions in files.
- When using extended regular expressions for complex text manipulation.
Core Principles & Rules
- Preview First: Encourage using the
--fzfappmode to verify changes visually. - Context Differences: Use
ctrl-swithin the interactive app to view diffs. - In-place Safety: Use
-icarefully, preferably with a backup suffix.