All notable changes to the "quick-replace-in-selection" extension will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Add a "Quick Replace Selections To..." command, which always replace the whole selections.
- Command "quickReplaceInSelection.replaceInSelection" support "args" object with keys "find" & "replace".
- Improved stability for repeat last command.
- Support regex input box to start with "*" to mean the expression which follows is a literal string instead of regex, and so is the replace-to expression. (i.e. the backslash escape and "$&" just match literally)
Remark: rules are predefined and so no need to be able to replace instantly, so they may use the "Escape literal string for PCRE/extended regular expression" rule to escape a string to be matched literally.
- New command "Quick Replace In Selection (Repeat Last)"
- Allow keyboard shortcuts to be associated to a rule.
- Support special "-g" postfix in regex's "flags" to mean replace first match only (for each selection). E.g. "?mi-g " in the input box, or
"flags": "mi-g"
in rules.
- Settings
quick-replace.rules
has been changed toquickReplaceInSelection.rules
- "find" attribute in the rules accidentally supported special prefixes like "+" & "?i ". It is removed now.
- Fix README markdown problems which show "?i" instead of "?i " wrongly.
- Initial release
- Support inputting "Target to replace" and "Replace to"
- Support replace by a defined rule with multiple replacements