Author Topic: Use the Word at the Cursor as the Search String  (Read 16549 times)

Lisa

  • Senior Community Member
  • Posts: 238
  • Hero Points: 24
  • User-friendly geek-speak translator extraordinaire
Use the Word at the Cursor as the Search String
« on: January 08, 2008, 04:04:16 PM »
When performing a search or replace with the Find and Replace tool window, SlickEdit can use the word at the cursor as the initial search/replace string. For example, press Ctrl+F and the word closest to the cursor is displayed in the Search for field of the Find and Replace tool window. To enable this option, from the main menu, click Tools > Options > General, then select the Search tab and select the option Word at cursor.

Note that if the option Selected text (if exists) is checked, the currently selected text is used as the search/replace string instead. In this case, the word at the cursor is only used if there is no current selection.

tcolgan001

  • Community Member
  • Posts: 21
  • Hero Points: 0
Re: Use the Word at the Cursor as the Search String
« Reply #1 on: December 16, 2009, 08:37:38 PM »
Update (version 14.0.2.2):

From main menu select "tools\options"

From tree select "Editing\Search"

Set "Initialize search string" to "Word at Cursor".



mrfirmware

  • New Community Member
  • Posts: 1
  • Hero Points: 0
Re: Use the Word at the Cursor as the Search String
« Reply #2 on: March 24, 2010, 01:15:26 PM »
Doesn't seem to work for Emacs's incremental search.

Bob Lee

  • Junior Community Member
  • Posts: 2
  • Hero Points: 0
Re: Use the Word at the Cursor as the Search String
« Reply #3 on: May 19, 2010, 03:02:49 PM »
If I hit Ctrl-F, SE selects the letter following the cursor effectively creating a selection if there is none, or extending a selection I have made.  Is there anyway to turn that off.  It requires that I use the mouse to do almost all of my searches and replacements.