Bug 124626 - kfilereplace: allow replacing with an empty string
Summary: kfilereplace: allow replacing with an empty string
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kfilereplace
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: unspecified
Platform: unspecified Solaris
: NOR wishlist
Target Milestone: ---
Assignee: András Manţia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-31 11:37 UTC by Nicolas Brisset
Modified: 2018-09-03 00:22 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Patch for bug #124626 (1.44 KB, patch)
2017-05-14 00:06 UTC, kolubat
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Brisset 2006-03-31 11:37:20 UTC
Version:           0.1 (using KDE 3.4.0, compiled sources)
Compiler:          gcc version 3.4.3
OS:                SunOS (sun4u) release 5.8

I have just spent quite some time trying to understand why I was locked in "Search only" mode... I was trying to remove the following string: "$CST/" from a list of files, and I thought I could leave the "replace with" field empty to do that. I finally found out that it is not possible to active the "Search/replace" mode as long as the "replace with" field is empty. Putting a space there worked (as soon as I understood I had to backslash the "$" !), but it is not exactly what I was trying to achieve.

I see no good usability argument to keep the current behavior, and I believe it should be changed. There are other ways to only search for strings whithout replacing them, it that's what the user wants.
Comment 1 Patrick ALLAERT 2006-07-05 11:49:47 UTC
I STRONGLY agree with Nicolas !
Comment 2 Michael Stather 2006-09-29 12:21:17 UTC
Mee too
Also I don´t think it´s hard to implement. Maybe a question boy should open to prevent this action to be made by mistake (forgot to enter the replace string)
Comment 3 H.H. 2007-12-04 22:47:16 UTC
Mee too, everytime I wanted to use kfilereplace, I wanted to replace with an empty string. It is useless for me in it's current state.
Comment 4 H.H. 2008-07-07 16:39:54 UTC
is this still not solved?
Comment 5 H.H. 2014-05-26 13:13:45 UTC
@András Manţia: are you still active in development?
Comment 6 kolubat 2017-05-14 00:06:30 UTC
Created attachment 105520 [details]
Patch for bug #124626

Here's a patch for this.

There's a possible problem with the patch in that there's no way to ask the app to use search-only mode, but I don't really see the point since one could just click Search Later and then click Simulate.

If that's a problem, a check box could be added for it.
Comment 7 kolubat 2017-05-14 00:11:09 UTC
(Author information for the above patch: created by Elliot Chandler on 13 May 2017)
Comment 8 Andrew Crouthamel 2018-09-03 00:22:12 UTC
Hello! Sorry to be the bearer of bad news, but this project has been
unmaintained for many years and I will be closing this bug.