Page 1 of 1

Search but NO replace

Posted: Fri Aug 18, 2023 9:31 pm
by richmond62
Screen Shot 2023-08-18 at 23.28.41.jpg
-
Oddly enough, in both LC 9.6.3 and LC 8.1.10 the replace field does not get ficus so one cannot enter a term into it.

Re: Search but NO replace

Posted: Fri Aug 18, 2023 9:38 pm
by bn
Hi Richmond,

try to do search first, then the replace field accepts an entry.
Please note that replace is powerful but also is one of the fastest ways to break a stack.
I always like to have current backup before replacing.

Kind regards
Bernd

Re: Search but NO replace

Posted: Sat Aug 19, 2023 2:20 am
by richmond62
I jave used Search & Replace many times (but not in the last 2-3 years) and broken lots of stacks. :roll:

And your suggestion, Bernd, is how I have always done things.

Re: Search but NO replace

Posted: Sat Aug 19, 2023 9:46 am
by richmond62
Screen Shot 2023-08-19 at 11.43.30.png
-
Going nowhere.

Re: Search but NO replace

Posted: Sat Aug 19, 2023 9:58 am
by bn
Richmond,

That is a bug: the default is "All available stacks". Change that to e.g. current tab or all tabs and it works.
This was introduced when "scriptifying" that dialog.

Bug 24001

I suggested to change the default but to no avail. The main bug was fixed.
KInd regards
Bernd

Re: Search but NO replace

Posted: Sat Aug 19, 2023 10:11 am
by richmond62
All available stacks
BUT . . .

I want to do a thorough search & replace throughout the whole LC IDE.

Re: Search but NO replace

Posted: Sat Aug 19, 2023 10:29 am
by bn
richmond62 wrote:
Sat Aug 19, 2023 10:11 am
All available stacks
BUT . . .

I want to do a thorough search & replace throughout the whole LC IDE.
Then I would not use the Script Editor's Find and Replace. I never tried to change the IDE Scripts wholesale and I do not see a way for the IDE stacks to show up in the Find and Replace when chosen from the Edit Menu.

Though you probably could load the scripts into the Script Editor via the Project Browser (turn on in menu View: Show IDE Stacks in lists) and then do your replace in all tabs. I think the limit for the Script Editor is 20 scripts at for any given Script Editor at a time.

Kind regards
Bernd

Re: Search but NO replace

Posted: Sat Aug 19, 2023 1:49 pm
by richmond62
I think the limit for the Script Editor is 20 scripts
This is interesting considering, when LiveCode became fully unicode-compliant, I ran a search and replace through my Devawriter Pro stack (featuring a thousand faux buttons with scripts and lord-alone-knows the card scripts and so on) to replace numToChar with numToCodePoint and the whole thing was done and dusted in about 7-8 minutes.