This extension adds the Iterm2 "smart selections" functionality to vscode terminal windows. This allows for custom regex matching and actions when terminal output is cmd-clicked.
Features
Supported Actions
Send Text
Open URL
Extension Settings
Include if your extension adds any VS Code settings through the contributes.configuration extension point.
For example:
This extension contributes the following settings:
itermsmartselections.openUrlRules: Array of JSON objects where key contains a regex to match, and the value is the URL to open. Use $0-$N to use regex capture groups in output.
itermsmartselections.sendTextRules: Array of JSON objects where key contains a regex to match, and the value is the text to send to the terminal. Use $0-$N to use regex capture groups in output.
Known Issues
Be careful when escaping JSON special chars, such as \b in your regexes. For example, you'll need to use \\b to use match word boundaries.