proton icon indicating copy to clipboard operation
proton copied to clipboard

word wrapping dependent on window size

Open svatem1 opened this issue 8 years ago • 2 comments

It's definitely problem on Atom's side, BUT - in Spacemacs, when you open 2 windows (SPC-w-/ e.g.), buffers inside these windows do not try to wrap themselves inside visible area, they're wrapped at some fixed length instead (meaning - if you change the size of the windows, there are no "dancing" lines). This behavior cannot be mimicked via Atom's settings, because as long as wrapping is toggled on, it occures on min(wrap_column, win_width) column. You cannot reliably position your buffers (e.g. for looking at b1 and typing something based on that in b2) without having them "scrolled away" by wrapping.

svatem1 avatar Mar 27 '16 23:03 svatem1

@svatem1 there is an option to disable word wrapping

Add to your .proton to :configuration

     ["editor.softWrap" false]

Or find this option via Settings -> Editor Settings option called Soft Wrap

geksilla avatar Mar 28 '16 10:03 geksilla

@geksilla i know, i've mentioned it; but point is TO HAVE correct wrapping at certain column, not to have no wrapping at all..

current behavior always wraps to min(user's selected column, window's width) column..

just imagine 2 vertical windows both being wrapped at 80 chars, if you make one of them bigger, the contents of the other one gets rewrapped (even if your setting tells 80) and you have to rescroll it to the same place you were; and you have to rescroll it each time you change window's width..

svatem1 avatar Mar 28 '16 10:03 svatem1