-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
When editing HTML automatically inserted tabs are broken. #2236
Comments
I tried inserting the following code into a script element directly from the OS clipboard:
This resulted in a freeze, after the cursor had moved to a column number around ~1500000. |
For the pasting part, you must paste with |
Then |
Yes. This is a known issue. I'll make a tracking issue for it.
This is outside of pasting - just with regular editing, right? The indentation mechanism was fully reworked after the 22.03 release. You can try it out by building from source, awaiting nightly releases (#358), or awaiting the next release (May, https://github.com/helix-editor/helix/wiki/FAQ#when-will-the-next-release-be) |
This is general problem outside of pasting as well - though I only experience this behavior when handling HTML, - in Python files things are fine. Will try to upgrade to a new version of Helix, thank you. |
this is because there is no indent.scm file for html yet |
not sure if it the same thing, but I have this: |
I'm experiencing similar issues with other languages, too, like markdown. @adsick this looks like you pasted through the terminal (which treats the input as if the user typed each character), right? |
@CptPotato thanks, didn't know that. But still |
|
Is there a way to disable automatic indentation for HTML until this is fixed? |
That seems to be true somehow, as the exponential line growth doesn't happen with
I'm afraid not. Per-language editor settings seem to be quite limited at the moment (you can only set |
Summary
I have set the editor to adapt indentation, when adding new lines. Whenever I edit HTML, the amount of indents grow exponentially.
Reproduction Steps
I am using default settings, on an M1 Mac. This happens every time I edit HTML files.
Helix log
~/.cache/helix/helix.log
Platform
Mac
Terminal Emulator
Warp, iTerm2
Helix Version
helix 22.03 (d4e45fd)
The text was updated successfully, but these errors were encountered: