notepad-plus-plus icon indicating copy to clipboard operation
notepad-plus-plus copied to clipboard

[Feature request] Multiline editor for Find & replace

Open jumnt opened this issue 3 years ago • 4 comments

Description of the Issue

Entering multiline find & replace patterns is very tedious because user has to use \r\n characters to enter new lines and it is hard to make oneself oriented in the sear/replace pattern. Multiline editor for Find & replace to ease entering multiline find & replace was nicely implemented in jEdit when user can just copy & paste multiline text to the find box (which is displayed as multiline) and do the same for replace pattern. User does not need to use escape sequences for most common characters such as Tab, NewLine and Line Feed characters.

Expected Behavior

Extend the find and replace box to be multiline and display multiline entries Enter special characters such as Tab, New Line/Linefeed using Ctrl+, e.g. Ctrl+Enter adds new line character.

Actual Behavior

Currently, find and replaces patterns are displayed on a single line; user needs to use escape sequences for characters like \n\r\t and others.

image

jumnt avatar Jan 22 '23 09:01 jumnt

Apart from the above linked related issues, there exist also the following two:

  • https://github.com/notepad-plus-plus/notepad-plus-plus/issues/563
  • https://github.com/notepad-plus-plus/notepad-plus-plus/issues/3569

Besides, the requested mutliline find & replace feature is already available in at least 2 different plugins :

  • ToolBucket : https://phdesign.com.au/npptoolbucket/ MENU Window > ToolBucket > Multline find and replace

obraz

  • NppTextFX2 : https://github.com/rainman74/NPPTextFX2 MENU Plugins > TextFX Quick > Q:Find/Replace

obraz

There is no need to implement something which is already implemented. Next time check plugins before requesting a feature which is already available as a plugin.

freezer2022 avatar Oct 23 '23 15:10 freezer2022

Next time check plugins before requesting a feature which is already available as a plugin.

IMO this is one of those where the request really should be implemented natively.

alankilborn avatar Oct 23 '23 16:10 alankilborn

It's called reinventing the wheel from scratch...And what next? Implementing natively Multiple include/exclude folders : https://github.com/notepad-plus-plus/notepad-plus-plus/issues/3114 + https://github.com/notepad-plus-plus/notepad-plus-plus/issues/13929 ? And so on...and then you will end implementing natively all this : https://github.com/notepad-plus-plus/notepad-plus-plus/issues/9627 ... There must be a stop point somewhere...

freezer2022 avatar Oct 23 '23 16:10 freezer2022

To follow this important ticket.

Neustradamus avatar Nov 29 '25 13:11 Neustradamus