ProgerXP / Notepad2e

Word highlighting, simultaneous editing, split views, math evaluation, un/grep, comment reformatting, UAC elevation, complete regexps (PCRE), Lua lexers, DPI awareness and more (XP+)
Other
372 stars 52 forks source link

Wrap mode: by column width #355

Closed sergeevabc closed 3 years ago

sergeevabc commented 3 years ago

I need to type texts with fluid formatting, but looking good at a certain width, that’s why hard line breaks near LongLine are unsuitable. Possible recourse is a new wrap mode “by column”, in addition to the existing “by window”.

For example, MadEdit has it as follows

ProgerXP commented 3 years ago

It's true that Ctrl+I wraps by window size but Ctrl+Shift+W does exactly what you need.

sergeevabc commented 3 years ago

Err… What? Ctrl+I and Ctrl+Shift+W do nothing, the only shortcut for word-wrap that works is Ctrl+W and it wraps by window.

ProgerXP commented 3 years ago

Select text you want to wrap then press it.

Or your intention is to have text wrapped only visually? Then why reducing window size doesn't do the job?

sergeevabc commented 3 years ago

Reducing window means I see other windows, therefore distraction-free typing is no longer possible.

And, by the way,

ProgerXP commented 3 years ago

Reducing window means I see other windows, therefore distraction-free typing is no longer possible.

This problem should be addressed by other means. It's a specialized task meant for specialized programs, just like arranging windows, managing tabs, etc. At least, you can open another Notepad2 window in background and maximize it. Or use virtual desktops in Windows 10 where you can keep visible just one window even if you have others running in background.

If we do this, we can be similarly asked to position the text inside window specially (e.g. centered), disable OS notifications, enable blue light filter, etc. etc.

pressing Ctrl+I on selected text does nothinig

It wraps the line according to window size. If the line is not long enough, it does nothing.

after pressing Ctrl+Shift+W on selected text I am no longer able to move cursor and type.

There was a similar bug but I can't reproduce it in the latest version or last public version (2020 release).