Multi Selection Replace
Replace all the selections of text with the result of an expression.
Usage
- Select the text that you want to replace (you can creat multiple selectors holding down Alt while clicking with the mouse)
- Press Ctrl + Alt + M on Windows, Cmd + Alt + M on Mac
- Provide an expression in the input box at the top of the screen. You can use:
e : to reference the current element
i : to reference the current index
a : to reference the whole array of selections
- Press Enter
Examples
Increasing sequence
![increasing sequence](https://raw.githubusercontent.com/valerioio/multi-selection-replace/main/resources/increasing-sequence.gif)
Increasing sequence (2nd example)
![increasing sequence (2nd example)](https://raw.githubusercontent.com/valerioio/multi-selection-replace/main/resources/increasing-sequence-2nd-example.gif)
Fibonacci sequence
![fibonacci sequence](https://raw.githubusercontent.com/valerioio/multi-selection-replace/main/resources/fibonacci-sequence.gif)
Source Code
Github repository with the source code here.
1.0.0
Initial release.
| |