An improved Search/Replace function

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Blue
Addict
Addict
Posts: 886
Joined: Fri Oct 06, 2006 4:41 am
Location: Canada

An improved Search/Replace function

Post 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.
Last edited by Blue on Sun Mar 19, 2017 6:04 pm, edited 2 times in total.
"That's not a bug..." said the programmer. "it's a feature! "
"Oh! I see..." replied the blind man.
uwekel
Enthusiast
Enthusiast
Posts: 740
Joined: Sat Dec 03, 2011 5:54 pm
Location: Oldenburg (Germany)

Re: An improved Search/Replace function

Post by uwekel »

And key accellerators for Linux, please :wink:
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2071
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Re: An improved Search/Replace function

Post 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:
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
DontTalkToMe
Enthusiast
Enthusiast
Posts: 334
Joined: Mon Feb 04, 2013 5:28 pm

Re: An improved Search/Replace function

Post 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
User avatar
Blue
Addict
Addict
Posts: 886
Joined: Fri Oct 06, 2006 4:41 am
Location: Canada

Re: An improved Search/Replace function

Post 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.
"That's not a bug..." said the programmer. "it's a feature! "
"Oh! I see..." replied the blind man.
Al_the_dutch
User
User
Posts: 66
Joined: Mon Nov 11, 2013 11:07 am
Location: Portugal

Re: An improved Search/Replace function

Post 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
Post Reply