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
370 stars 52 forks source link

Join Lines/Paragraphs - Alt modifier to not add space #451

Closed ProgerXP closed 1 year ago

ProgerXP commented 1 year ago

Extend both commands so that when Alt is present they do not add space between former lines. Otherwise respect current behaviour and earlier issues: #407 #160 #135.

Add two new commands to Edit > Lines: Join Lines Without Space (after Join Lines) and Join Paragraphs Without Space (after Join Paragraphs).

[a
b

c
d]

Ctrl+J, Alt+Ctrl+J:

[a b  c d]
[ab cd]

Ctrl+Shift+J:

a b

c d

Alt+Ctrl+Shift+J:

ab

cd
cshnik commented 1 year ago

Done.