yo1dog / vscode-cursor-align

Visual Studio Code Extension that aligns all cursors using spaces.
MIT License
22 stars 7 forks source link

Align several cursor per line #11

Open matklad opened 1 year ago

matklad commented 1 year ago

Inspired by https://bytes.zone/posts/aligning-markdown-tables-in-helix/

If I have a text like this:

| ID | Name | Category ID |
|-|-|-|
| 11092 | Gorilla Fist | 27 |
| 11212 | Plate 3 x 3 | 14 |
| 11209 | Tyre 21 x 9.9 | 29 |
| 11640pr0003 | ELECTRIC GUITAR SHAFT Ø3.2 NO. 3 | 27 |

and I select all | (there are four per line), I want to be able to align all of them. Right now, only the last cursor per line is aligned.

That is, I imagine the following iterative logic: