-
Notifications
You must be signed in to change notification settings - Fork 17.3k
Softwrap should match indent #1125
Comments
This one looks dead. Were there any solutions? |
I believe this has been resolved. |
Mm, nope, sorry. Still a thing. |
@cameronmcefee Did you fix this issue? I still can not solve this! |
@Azzurrio Sorry, I'm not working on this issue, I just reported it. |
Would greatly appreciate this being added as an option or as the default wrapping functionality. Having wrapped lines start back at the far left is confusing because it doesn't keep the indent level of the line that belongs to which throws off the entire file structure. |
Just ran into this today as well. This is super confusing to deal with when you run into it. It essentially drop any indentation as soon as a line is soft wrapped, but still keeps the indent on the next line. But this only happens visually, technically the code works fine (ran into this with a whitespace significant language and although it looked messed up it compiled correctly. An example (this one is jade) Here's what the code actually looks like: .some_div
a(href='http://www.areallyreallyreallyreallyreallyreallyreallyreallylonglink.com')
.another_div
|
+1 This is the only thing really stopping me from moving over full time, it's driving me nuts. Such a small thing, but yeah. |
+1 Please fix it...it's annoying |
Although I am very much for this feature, and would have it turned on, a co-worker of mine has expressed disdain for it. Therefore, it'd be best if it were optional (but probably on by default). |
Atom looks awesome, but this is a deal breaker for me. Is there any movement on this? |
@javaporter Sorry, no movement on this yet. |
This along with atom/tabs#76. My biggest grips for Atom, great otherwise! |
+1 |
+1 even though its mostly an aesthetic issue shouldn't it be tagged as a bug as its not in the expected behavior? |
+1 |
1 similar comment
+1 |
+1. this might seem like a detail or aesthetic preference at first but the behavior is really confusing when using significant whitespace syntaxes (coffee, sass, jade, slim, haml...). |
+1, this is the primary reason I haven't switched from Sublime to Atom as my full time editor yet for any kind of markup (that contains long lines) and any languages with significant whitespace like filtercake mentioned. |
+1 |
3 similar comments
+1 |
+1 |
+1 |
That's awesome, thanks @izuzak! |
I just want to chime in. I hope this crucial feature makes it into 1.0. Hopefully it will be integrated soon. :) |
I hope too! Thanks @izuzak. |
+1 |
2 similar comments
+1 |
+1 |
This is already in the tracking issue for 1.0, so we agree that it is important. Your voices have been heard, no need to add |
I think people adding +1 is just a way of easily subscribing and registering their interest. Perhaps there needs to be a +1 button on GitHub and a counter like Reddit. |
Nope, pretty sure they’re adding +1 because they want it to be an issue that gets addressed sooner than later. Putting it on a list for the next release is great (don’t get me wrong—not complaining), but I know several people are holding off on using Atom until it’s fixed. Since there’s no promise date for the next major release, I’d bet they’re hoping that adding +1 will get it addressed sooner. |
This must be a more difficult problem than it would appear on the surface. It is promised for v1, which is good. But if it were "easy," I suspect the team would have added this already. |
+1 This is getting closer to breaking the deal for me. |
+1.0 |
+1, just showing my support for this, great work team! |
I would like to tackle this (or, at least, offer my help), but I need guidance in order to get started. This should affect only rendering, therefore my understanding of the code led me to In particular, I have noticed also that Thus, as far as I understand, we would need a way to move the Now, a couple of questions:
Thanks in advance to anybody who will help me out 🙏 |
Pinging @atom/core re @as-cli's questions |
Yes, but we model it. The
No, you're going to need to insert a phantom token. More details below.
Check out how we handle hard tab characters, which map multiple spaces in screen coordinates to a single character in the buffer. This should be similar, but would map to zero characters in the buffer causing the cursor to skip that leading whitespace.
I think your phantom token approach sounds promising and was what I had in mind. It's hard to say what kind of issues might crop up with our coordinate mapping going from multiple characters on screen to zero in the buffer since we've never done that... with tab we map to one character in the buffer. So that could be interesting. You'll just have to see what emerges I guess. |
🏆 Awesome - really wanted this feature! |
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks! |
Ok, this one may be a personal preference, but it drives me nuts that softwrap doesn't match the indent.
The text was updated successfully, but these errors were encountered: