Skip to content
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

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

Closed
popthezid opened this issue Jul 10, 2024 · 3 comments
Labels
✅enhancement upstream scintilla Changes depends on upstream Scintilla
Milestone

Comments

@popthezid
Copy link

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

notepad2_find

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

@popthezid
Copy link
Author

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

@zufuliu zufuliu added the upstream scintilla Changes depends on upstream Scintilla label Jul 11, 2024
@zufuliu
Copy link
Owner

zufuliu commented Jul 11, 2024

new line is only added for rectangular selection (hold on Alt and select multilines):

if (sel.selType == Selection::SelTypes::rectangle) {
if (pdoc->eolMode != EndOfLine::Lf)
text.push_back('\r');
if (pdoc->eolMode != EndOfLine::Cr)
text.push_back('\n');
}

@zufuliu
Copy link
Owner

zufuliu commented Jul 12, 2024

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

@zufuliu zufuliu closed this as completed Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✅enhancement upstream scintilla Changes depends on upstream Scintilla
Projects
None yet
Development

No branches or pull requests

2 participants