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

incorrect indentation with if..elif..else statements in python #7816

Closed
loyalrami opened this issue Aug 3, 2023 · 6 comments
Closed

incorrect indentation with if..elif..else statements in python #7816

loyalrami opened this issue Aug 3, 2023 · 6 comments
Labels
A-indent Area: Indentation C-enhancement Category: Improvements R-duplicate Duplicated issue: please refer to the linked issue

Comments

@loyalrami
Copy link

loyalrami commented Aug 3, 2023

Hi, The indentation with if..elif..else statements if python doesn't work.
Here is the issue and reproduction steps in image.
IMG20230803152535
VERSION
helix 23.05 (7f5940b)
OS windows 10

@loyalrami loyalrami changed the title Indentation doest work with if elif and else statements in python incorrect indentation with if..elif..else statements in python Aug 3, 2023
@dead10ck
Copy link
Member

dead10ck commented Aug 3, 2023

Hi, this doesn't really tell us what you did to reproduce the issue. Can you give more details? What did you do and what did you expect to happen?

@loyalrami
Copy link
Author

loyalrami commented Aug 3, 2023

Hi, this doesn't really tell us what you did to reproduce the issue. Can you give more details? What did you do and what did you expect to happen?

Hi, Just start if..elif..else statement in python.

@dead10ck
Copy link
Member

dead10ck commented Aug 3, 2023

That's still not enough information. What are you expecting to happen? Are you expecting helix to automatically unindent the elif for you?

@loyalrami
Copy link
Author

That's still not enough information. What are you expecting to happen? Are you expecting helix to automatically unindent the elif for you?

yes helix does not unindent the else and elif statements , I have to do it manually

@pascalkuthe
Copy link
Member

@Triton171 mentioned retroactive dedent somewhere I think but I cant find it. The current indent system only effects where your cursor is placed in a new line and not past lines so this is not a bug and working as intended.

@pascalkuthe pascalkuthe added C-enhancement Category: Improvements A-indent Area: Indentation labels Aug 3, 2023
@pascalkuthe
Copy link
Member

Ah found it: duplicate of #6044

@pascalkuthe pascalkuthe closed this as not planned Won't fix, can't repro, duplicate, stale Aug 4, 2023
@pascalkuthe pascalkuthe added the R-duplicate Duplicated issue: please refer to the linked issue label Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-indent Area: Indentation C-enhancement Category: Improvements R-duplicate Duplicated issue: please refer to the linked issue
Projects
None yet
Development

No branches or pull requests

3 participants