zufuliu / notepad4

Notepad4 (Notepad2⨯2, Notepad2++) is a light-weight Scintilla based text editor for Windows with syntax highlighting, code folding, auto-completion and API list for many programming languages and documents, bundled with file browser plugin matepath.
Other
2.6k stars 184 forks source link

查找功能的“选择全部”在选择多行文本的情况下无法保持换行,粘贴后内容全部变为一行。 #814

Closed popthezid closed 2 months ago

popthezid commented 2 months ago

通过普通查找或者正则表达式查找后,点击 “选择全部”, 然后复制——粘贴,就会全部在一行里面了,不会自动添加换行符号。

notepad2_find

期待类似Emeditor,bowpad,cudatext等保持原有换行等格式。

popthezid commented 2 months ago

cudatext的查找,复制粘贴后保持原有格式。左边为选择,后边为粘贴后。 cudatext

zufuliu commented 2 months ago

new line is only added for rectangular selection (hold on Alt and select multilines): https://github.com/zufuliu/notepad4/blob/e9fb0724a0d573982881ede88a84c136e797b7c1/scintilla/src/Editor.cxx#L4351-L4356

zufuliu commented 2 months ago

Filled https://sourceforge.net/p/scintilla/feature-requests/1530/, added a simple implementation in 54994f1446c22000d9f4e44b5c58ca2e9d7cf570