Find and Replace request

Something you want to see in a LiveCode product? Want a new forum set up for a specific topic? Talk about it here.

Moderator: Klaus

Post Reply
maxs
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 421
Joined: Sat Jun 24, 2006 12:02 am
Contact:

Find and Replace request

Post by maxs » Sun Nov 13, 2011 2:54 am

OK, When I use the "find" command, it would be so, so helpful if I could set the default to "in this stack" instead of "this selection."

Also, when I go to view the scripts which contain the results of my mind, it would be so, so helpful if the text that I am seaching for could be automatically copied into the find button at the bottom of my script, so I can continue searching for multiple occurances of the word.

By the way, I spent 2 years trying to get my script window from getting stuck under the menu bar. I trashed all preferences, even installed Livecode on a separate machine. It would be so, so nice if I could have access to the 'close' button or be able to move my script window, without having to type a command into my message box every time to close the script window.

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Re: Find and Replace request

Post by BvG » Sun Nov 13, 2011 11:29 am

I guess you're not using the find command, but the find and replace function of the IDE, within the script editor? (The find and replace palette issued from the IDE menus (when the script editor is not foremost for mac OS). That is a different search yet again).

I agree that the implementation of find in the IDE is wonky and weird. But besides suggesting you write your own, there's not much to do about that I guess.

For the script editor (AT YOUR OWN RISK):
  • 1. Open the script editor template stack.
    1a. Go to the settings, select "LiveCode UI objects appear in list of stacks" from the general settings (first checkmark).
    1b. Go to the application browser and find the stack "revNewScriptEditor"
    1c. Open its substack "revSETemplate" as toplevel (use the right click menu)
    2. Set the location and size of the template stack to something you like.
    3. Press ctrl-S (cmd-S on macs) to save the stack
    4. Quit and reopen the IDE, and test if it worked as expected
Alternatively:
  • 1. Delete LiveCode
    2. Reinstall LiveCode
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

maxs
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 421
Joined: Sat Jun 24, 2006 12:02 am
Contact:

Re: Find and Replace request

Post by maxs » Sun Nov 13, 2011 6:29 pm

Thanks for helping me with this, Bjoernke

I could not find any script editor template stack. (perhaps invisible)

Also, I did mean the "find" window, not the 'find and replace' window. I feel like I'm the only one in the world that prefers to search a stack over a selection.

Max

maxs
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 421
Joined: Sat Jun 24, 2006 12:02 am
Contact:

Re: Find and Replace request

Post by maxs » Sun Nov 13, 2011 6:33 pm

Never mind,

I reread your directions more carefully and found it.

Thanks, Max

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Re: Find and Replace request

Post by BvG » Mon Nov 14, 2011 2:04 pm

For simple finding, you can always use this in the messagebox:

Code: Select all

find "my text"
For more complex find forms, you probably need to write your own find stack, it's not hard, but you'd need a bit of time to make it work as you want i guess.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

Re: Find and Replace request

Post by dunbarx » Wed Nov 16, 2011 5:20 am

Not sure what I am missing. What is the "find" window? I know the find command, and the IDE and script editor "find and replace" windows, where you can search anywhere you please.

Craig Newman

Post Reply