Page 1 of 1

Find and Replace request

Posted: Sun Nov 13, 2011 2:54 am
by maxs
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.

Re: Find and Replace request

Posted: Sun Nov 13, 2011 11:29 am
by BvG
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

Re: Find and Replace request

Posted: Sun Nov 13, 2011 6:29 pm
by maxs
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

Re: Find and Replace request

Posted: Sun Nov 13, 2011 6:33 pm
by maxs
Never mind,

I reread your directions more carefully and found it.

Thanks, Max

Re: Find and Replace request

Posted: Mon Nov 14, 2011 2:04 pm
by BvG
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.

Re: Find and Replace request

Posted: Wed Nov 16, 2011 5:20 am
by dunbarx
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