Tyriar / vscode-sort-lines

Visual Studio Code extension to sort lines of text
https://marketplace.visualstudio.com/items/Tyriar.sort-lines
MIT License
146 stars 42 forks source link

[Request] ignore last \n #118

Closed jojorne closed 11 months ago

jojorne commented 1 year ago

I usually drag the line numbers to select lines. From the text below, this would select: 1\n3\n2\n And the cursor would be at the empty line.

From

A
1
3
2

B

Result

A

1
2
3
B

With Filter Blank Lines

A
1
2
3
B

Expected

A
1
2
3

B
gdlx commented 11 months ago

I came here for the exact same request. I made a gif to show the expected behavior (when selecting the line numbers): sortlines