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
BUG: Multiple cursors + Word wrap #1054
Comments
Don't think this actually is a bug but rather a feature. It's also the more visual approach because making a column selection with the continuation of wrapped lines not selected looks weird, probably. |
It wouldn't be perceived weird at all, if you ask me. The results the way things work now are unexpected to say the least. When you type the first character (let's say a hash character: "#"), further word wrapping may occur on some lines because of the added character (causing the word on the end of a line to jump to the beginning of the second line), so the hash characters you type appear all over the place. This could never be anyone's intention. So to avoid this, I have to turn off word wrapping, do what I want to do, and then turn it back on. It seems cumbersome and unnecessary. If for some reason, a fix cannot be implemented, is there another approach to marking only the n'th actual character (regardless of word wrapping) of a set of consecutive lines, without turning word wrapping off? |
Can't think of a reason, but I also don't know the code so it could be anything. Since this selection is based on mouse events and mouse events are terribly bad to interface atm (compared to the rest), there probably isn't much you can do. |
I'll wait for a developer to comment on this. This still comes off as a bug to me. |
Two methods :
Try to find another way to wrap text (in the file, not only on screen) without your bug/feature :
Now you can toggle off word wrap and your text is still wrapped. I find this usefull when I have plain text in code. So I don't think this is a bug : I think you try to write using a mouse, and this behaviour is unexpected. Sorry for my bad english, love from France EDIT : |
Couldn't quite get any of these to work. I get the search for A typical example would be to get a cursor at the asterisk character of line 1-4. How do I do this with word wrapping on where the blah's will wrap to the next line with a narrow enough window.
Votre anglais est probablement mieux que mon français :) |
There is an alternative method : Cut your 20 lines and work with on a new file. Search for ^ will only affect your 20 lines 😉 . I work a lot on snippets like that
( with the default ( I edited my previous answer ) There is a LOT to learn about sublime. I use it everyday, know some tricks, and still feel as a noob :p |
Selecting the area, pressing Cmd+Shift+L, then Cmd+Left Arrow does exactly what I want. Thanks! Yes, it seems like the kind of app where they add new features faster than you can learn them. I'll let a developer decide whether the current state of vertical marking with the mouse should be considered a bug or not. |
In regards to the OP, this behavior applies to all caret related interaction with word wrap - press down and the cursor goes to the soft line, same with Selection -> Add Next Line etc. i.e. Its not just related to column selection with the mouse. So that's why it's not a bug, although I agree that it isn't always want one wants. |
The setting to disable this feature is |
Yeah, I like this behavior and basically I can disable and enable this behavior without turning the And I remapped my keyboard to:
So, now using And Using Now seems this issue purpose has been fulfilled and may be achieved just installing a already existent package. Or there is something missing which the Package |
I'm still experiencing @evandrocoan 's issue today. I'm going to try his solution when I get home. |
I would expect option A, the ctrl+alt+down shortcut (whatever it's called) always seemed to create a cursor in next line so I would be very surprised if in some cases it would instead show up a few lines later. |
I'd also expect option A (and would have expected Column Select to do so as well). Maybe not a good idea in word wrapped lines, but I could also imagine use cases it might make sense to append spaces to a line which is not long enough (as AlighCursors does). Actually AlignCursors could be used to achive that. |
I would expect it to visually follow what is on the screen (what you see is what you get, WYSIWYG). And when disabling the word-wrap, I also would expect it to WYSIWYG again, but now with a new behavior according to what you see is what you get. |
Actually, I take that back. The behavior I see today with my Sublime Text installation is not WYSIWYG. So, I am just not sure about what to expect anymore. |
IMHO, the most problematic aspect of current behavior with regards to insufficient line lengths is it causing amount of cursors per line to change (#1558). |
alt
and drag the mouse down on the left side of the text to create multiple cursors (on Windows and Linux, its shift+right click and drag)Rather than editing each single line as expected, Sublime Text starts editing the continuation lines (the excess of the wrapped lines) too, with text havoc ensuing shortly. Surely this must be a bug.
I assume the correct behaviour is to put multiple cursors only at the actual beginning of the lines, leaving the continuation lines untouched.
Not surprisingly, the problem does not happen when Word Wrap is turned off.
The text was updated successfully, but these errors were encountered: