nisus.com
https://www.nisus.com/forum/

Quick find
https://www.nisus.com/forum/viewtopic.php?f=17&t=2623
Page 1 of 1

Author:  lawrencegoodman [ 2007-10-29 10:53:05 ]
Post subject:  Quick find

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.

Author:  martin [ 2007-10-29 14:29:45 ]
Post subject: 

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

Author:  lawrencegoodman [ 2007-10-29 15:55:38 ]
Post subject: 

Fantastic. Thanks. Who knew it would be so easy?

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/