-
-
Notifications
You must be signed in to change notification settings - Fork 21k
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
Allow unindent without selection #60904
The head ref may contain hidden characters: "\u{1F47B}\u{1F47B}\u{1F47B}"
Conversation
This seems to fail 2 test cases.
is expected to become
after unindent (i.e. whitespace to the right is removed). This behavior is probably what caused the original issue. Any reason why it would work like that? Is it common in code editors? |
Rebased. I also changed the failing test. tbh the two behaviors aren't really conflicting (i.e. Shift+Tab can remove trailing tab and unindent if there isn't one), but I'm just reviving a PR here; it's not like I know what it does >_> @Paulb23 Review would be appreciated, the issue gets in my way too often. |
Makes sense to me. I don't see why the current implementation would be desired - if I need to remove whitespace, I can just press Backspace. Idk about removing previous whitespace, instead of just tabs at the beginning of a line, but it seems pointless to me. |
I reworked the PR. It no longer removes |
I would continue to remove |
What's the difference between the remaining |
Some of those test are probably still worth keeping.
|
So should I change them to |
Yeah I think most of them should be okay apart from the ones under the |
Thanks! |
Revival of #50289
Fixes #50279
Fixes #68154