Search but NO replace

Want to talk about something that isn't covered by another category?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Search but NO replace

Post by richmond62 » Fri Aug 18, 2023 9:31 pm

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.

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4003
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Search but NO replace

Post by bn » Fri Aug 18, 2023 9:38 pm

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

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Search but NO replace

Post by richmond62 » Sat Aug 19, 2023 2:20 am

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.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Search but NO replace

Post by richmond62 » Sat Aug 19, 2023 9:46 am

Screen Shot 2023-08-19 at 11.43.30.png
-
Going nowhere.

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4003
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Search but NO replace

Post by bn » Sat Aug 19, 2023 9:58 am

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

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Search but NO replace

Post by richmond62 » Sat Aug 19, 2023 10:11 am

All available stacks
BUT . . .

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

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4003
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Search but NO replace

Post by bn » Sat Aug 19, 2023 10:29 am

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

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Search but NO replace

Post by richmond62 » Sat Aug 19, 2023 1:49 pm

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.

Post Reply

Return to “Off-Topic”