Text Commands
IWE includes text transformation capabilities that can be accessed right from your text editor. You can effortlessly rewrite text, expand on ideas, highlight important words, or apply any custom transformation using CLI tools.
Transform actions work by piping content through external commands. You can use custom scripts, standard Unix tools, or AI assistants like claude -p (Claude CLI in pipe mode) - any command-line tool that reads from stdin and writes to stdout.
How It Works
- Select or place cursor on a text block in your editor
- Open the code actions menu (
Ctrl+.orCmd+.) - Select a transform action (e.g., “Rewrite”, “Expand”)
- The text is processed through your configured command
- The result replaces the original content
Configuration
Transform actions require two parts:
- Command definition - the CLI tool to run
- Action definition - how to use the command
[commands.claude]
run = "claude -p"
timeout_seconds = 120
[actions.rewrite]
type = "transform"
title = "Rewrite"
command = "claude"
input_template = """
Rewrite this text to improve clarity and readability.
Keep links intact.
{{context}}
"""Check Configuration section for detailed instructions on how to set up custom commands.
Example Commands
Using Claude CLI:
[commands.claude]
run = "claude -p"
timeout_seconds = 120Using a Python script:
[commands.summarize]
run = "python ~/scripts/summarize.py"
timeout_seconds = 30Using standard Unix tools:
[commands.uppercase]
run = "tr '[:lower:]' '[:upper:]'"
timeout_seconds = 5