Page 1 of 1

Search for word under cursor

Posted: Mon Oct 28, 2002 1:00 pm
by Fazl
I searched the faq for 'search' or 'find' but nothing seemed appropriate so I'll post this question to any experienced Textpadders out there. I want to be able to search for the word under the cursor. If I invoke the command SearchFind after selected a piece of text, it automatically imports this text into the Find dialog.

However, I like the Visual Studio default behaviour, where you merely place your cursor on a word, and if you hit Ctrl+F it opens the Find dialog with that word imported.

Any ideas how to do this ??

Thanks folks,
fazl_NOSPAM@geocities.com

(Please remove the _NOSPAM in order to reach me.)

Re: Search for word under cursor

Posted: Mon Oct 28, 2002 2:21 pm
by Andreas
You could create a macro doing the following:

Ctrl Right
Shift Ctrl Left
F3

This should select the word and then search for it.
Assign this macro to a key you like...

Re: Search for word under cursor

Posted: Mon Oct 28, 2002 2:26 pm
by Andreas
Sorry, correction:

it is more reliable to use the Select Word command to select the word under the cursor.
This command is not available in the menus, but you can assign it to a key and then use that key.