Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only lines with selection should be considered as input lines #141

Open
CodingMarkus opened this issue Nov 3, 2024 · 0 comments
Open

Only lines with selection should be considered as input lines #141

CodingMarkus opened this issue Nov 3, 2024 · 0 comments

Comments

@CodingMarkus
Copy link

The line on which the cursor is currently located should not be considered an input line unless the cursor is not on the very first character of that line. Because that's how VSCode itself handles this situation in pretty much all other cases.

It's a little hard to describe, so I'm posting a video here:

sort

Notice how Line A is ignored when changing indentation, unless the cursor is not the very first character.

When sorting, the line with the cursor is always considered, even if it is the very first character. This is very annoying if you select 4 lines and then the cursor rests on the 5th line, which is a blank line, and when you sort, this blank line is sorted first but you didn't even want to include that line at all, because if there is no selection, that line shouldn't be part of the input.

All other extensions I use actually mimic this VSCode behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant