Help of UE wrote:Find dialog defaults to word under cursor
If this option is selected the editor automatically initializes the find/replace dialogs with the word under the cursor position. If not set, it uses selected text if present or the last find string.
Find Next/Prev finds selected text (not last searched for text)
If this option is selected the editor will find the selected text when a FIND NEXT/PREVIOUS command is performed instead of the previous search string UNLESS the Regular Expressions option is selected.
I explain the settings on an example.
This is just a |
sample text for demonstrating the behavior of the 2 search settings.
In the line above | marks the current cursor position and
nothing is selected. With
Find dialog defaults to word under cursor enabled pressing Ctrl+F opens the Find dialog and the word
sample is automatically entered in the Find What field although not selected. So with this option enabled it is not necessary to select first a word you want to search for. It is enough that the cursor is at beginning, inside or end of the word to have it automatically as search string preselected when opening the Find or Replace dialog. If this option is not enabled, the word to search for must be selected or the previous search string is preselected in the find/replace dialogs.
The setting
Find Next/Prev finds selected text (not last searched for text) is only for the commands
Find Next with default hotkey F3 and
Find Prev with default hotkey Ctrl+F3. With this option enabled you can select something and press F3 or Ctrl+F3 to search for the selected string without opening the Find dialog, unless the regular expression find option is enabled, instead of searching again down or up what you last searched for.
UltraEdit cannot automatically determine on opening Find/Replace dialog and a selection exists, if a search
for the selected text should be done, which is definitely the most wanted behavior, or a search for something other
in the selected text. It is definitely better to use by default the selection as search string because the opposite behavior with just selecting option
Selected Text and use last search string would force every user who wants to search for the selection to copy it to clipboard and paste it into the edit field and change the option to
Current File. Simply pressing key DOWN ARROW, when search in selected text instead of search for selected text is required, is surely the better default behavior.