Page 1 of 1

An improved Search/Replace function

Posted: Sun Mar 19, 2017 12:37 pm
by Blue
PB keeps improving with each new release. I love that.
The latest (5.60) is no exception. I love it.

But some areas of the IDE have been left behind for way too long, and remain poorly developed.
The Search/Replace function is one such element.

The current function is, in my view, still rather primitive.
For instance, when you press [Find next] to launch a search operation from a selected word or expression, the search invariably locks onto the current selection as the first occurence of the search criterion ! That's exasperating, and quite illogical. I believe, however, it could be very easily fixed.

A number of suggestions have been made to improve this function, some of them excellent.
uwekel (March 2017) Improvement for the Find/Replace dialog
Fredi (January 2017) : Add "Count" button to the Find/Replace window
NikitaOdnorob98 (June 2012) : What we lack in the IDE PB
bug report (July 2016) :[5.42] Replace by using old replace phrase fails...
It would be nice to see those suggestions implemented, in part or in totality, in the near future.
The Search & Replace function definitely needs to be modernized and generally improved.

In its present state, it's definitely one of the chief annoyances in PB.

Re: An improved Search/Replace function

Posted: Sun Mar 19, 2017 2:20 pm
by uwekel
And key accellerators for Linux, please :wink:

Re: An improved Search/Replace function

Posted: Sun Mar 19, 2017 4:38 pm
by Andre
Blue wrote:... a few other suggestions in this thread ...
Did you forgot to link to the mentioned thread?
Or which further suggestions do you mean? :twisted:

Re: An improved Search/Replace function

Posted: Sun Mar 19, 2017 4:52 pm
by DontTalkToMe
Blue wrote: In my view, the Search/Replace function is one such area.

Before improving it, would be better to make it work again.

http://www.purebasic.fr/english/viewtop ... =4&t=65153

Re: An improved Search/Replace function

Posted: Sun Mar 19, 2017 5:03 pm
by Blue
Andre wrote:[...]
Did you forgot to link to the mentioned thread?
Or which further suggestions do you mean? :twisted:
Quite right, Andre. :oops:
I'll grab the links and include them in the original post.
Thanks for the reminder.

Re: An improved Search/Replace function

Posted: Tue Apr 11, 2017 3:36 pm
by Al_the_dutch
I think Blue is right.

In http://www.purebasic.fr/english/viewtop ... =3&t=60501 I wrote:
IDE I. Search and Replace: It would be nice if you can
- Replace within a selection without having to use "Replace all". If you do "Find" the selection disappears after the first find.
- Choose to do your action in all the opened files (prompted) and not just in the current file
- Use wildcards


It would be great if S/R were to be improved.

KR Al