Find and Replace bug

English main discussion
Post Reply
  • Author
  • Message
Offline
Posts: 21
Joined: Mon Mar 14, 2011 1:27 pm

Find and Replace bug

Post by danf84 »

Hello, I believe there's a bug in Akelpad Find and Replace feature.

For example, say I highlight/select this line in the editor:

<INPUT TYPE="Button" NAME="btnFV_Old" VALUE="FV_Old" onClick="btnFV_Old_OnClick()">

I want to ONLY replace "Old" with "New" in the selected line, so I open the dialog with CTRL+R and the "What:" text box says Old, "With:" text box says New; I select "In selection". I hit "Find next"/"Replace", the first value it finds it replaces, but it lost the original selected line, the selection changed when it found the first item.


Borland Delphi 7 editor does this by retaining the original selection, and when it finds a match it uses a different highlighting color within the original selection. It would also be nice if AkelPad could prompt before replacing.

Dan

Offline
Site Admin
Posts: 6311
Joined: Thu Jul 06, 2006 7:20 am

Post by Instructor »

danf84
1. Make selection.
2. Open Replace dialog.
3. Fill "What:" and "With:".
4. Check "In selection".
5. Press "Replace all".

You can turn on option to autocheck "In selection" in settings of the program.

Offline
Posts: 21
Joined: Mon Mar 14, 2011 1:27 pm

Post by danf84 »

"Replace All" works, but half the times I would want to replace some parts of the text, not every part. That's currently not possible in Akelpad for reasons outlined above (no selection within selection support).

Dan

Offline
Posts: 21
Joined: Mon Mar 14, 2011 1:27 pm

Post by danf84 »

Can you tell me if you're EVER going to do this so I can consider whether to look elsewhere or try to write a plugin/modify the source.

If you're still unsure about what I mean, look at the screenshot.

Image[/img]

Offline
Site Admin
Posts: 6311
Joined: Thu Jul 06, 2006 7:20 am

Post by Instructor »

danf84
I understand your request. Currently this is not implemented.
Post Reply