Reply to topic  [ 3 posts ] 
Quick find 
Author Message

Joined: 2007-07-30 12:06:49
Posts: 30
one of the features i like most about plain old fashioned text editors is that you can call up the find/replace dialogue, enter what you want it to find, it moves you to that word, and then the find box disappears automatically. it just saves you the annoyance of having to close the find box yourself.

i was wondering if it might be possible to create a macro that asked the user for a find string, found the string, and then the window disappeared and you could start typing. the other cool thing would be for the find string you entered to become the default find value so if you hit command+g it will search again for the find string you entered when the macro ran.

just a thought. thanks.


2007-10-29 10:53:05
Profile
Official Nisus Person
User avatar

Joined: 2002-07-11 17:14:10
Posts: 4251
Location: San Diego, CA
Post 
This should do the trick:
Code:
$search = Read Find Expression
$search = Prompt Input “What would you like to search for?”, “Please enter the text you would like to search your document for.”, “Find”, $search
Write Find Expression $search
Find $search


2007-10-29 14:29:45
Profile WWW

Joined: 2007-07-30 12:06:49
Posts: 30
Post 
Fantastic. Thanks. Who knew it would be so easy?


2007-10-29 15:55:38
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: Bing [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software